Package org.apache.drill.exec.vector
Class BitVector.Mutator
java.lang.Object
org.apache.drill.exec.vector.BaseValueVector.BaseMutator
org.apache.drill.exec.vector.BitVector.Mutator
- All Implemented Interfaces:
ValueVector.Mutator
- Enclosing class:
- BitVector
MutableBit implements a vector of bit-width values. Elements in the vector are accessed by position from the
logical start of the vector. Values should be pushed onto the vector sequentially, but may be randomly accessed.
NB: this class is automatically generated from ValueVectorTypes.tdd using FreeMarker.
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
generateTestData
(int values) final void
set
(int index, int value) Set the bit at the given index to the specified value.final void
void
setSafe
(int index, int value) void
void
setSafe
(int index, NullableBitHolder holder) final void
setValueCount
(int valueCount) Sets the number of values that is stored in this vector to the given value count.Methods inherited from class org.apache.drill.exec.vector.BaseValueVector.BaseMutator
exchange, reset
-
Method Details
-
set
public final void set(int index, int value) Set the bit at the given index to the specified value.- Parameters:
index
- position of the bit to setvalue
- value to set (either 1 or 0)
-
set
-
setSafe
public void setSafe(int index, int value) -
setSafe
-
setSafe
-
setValueCount
public final void setValueCount(int valueCount) Description copied from interface:ValueVector.Mutator
Sets the number of values that is stored in this vector to the given value count. WARNING! Once the valueCount is set, the vector should be considered immutable.- Parameters:
valueCount
- value count to set.
-
generateTestData
public final void generateTestData(int values) - Specified by:
generateTestData
in interfaceValueVector.Mutator
- Overrides:
generateTestData
in classBaseValueVector.BaseMutator
-