Package org.apache.drill.exec.vector
Class ObjectVector.Mutator
java.lang.Object
org.apache.drill.exec.vector.ObjectVector.Mutator
- All Implemented Interfaces:
ValueVector.Mutator
- Enclosing class:
ObjectVector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexchange(ValueVector.Mutator other) Exchanges state with the mutator of another mutator.voidgenerateTestData(int values) voidreset()Resets the mutator to pristine state.voidprotected voidset(int index, ObjectHolder holder) booleansetSafe(int index, long value) booleansetSafe(int index, ObjectHolder holder) voidsetValueCount(int valueCount) Sets the number of values that is stored in this vector to the given value count.
-
Constructor Details
-
Mutator
public Mutator()
-
-
Method Details
-
set
-
setSafe
public boolean setSafe(int index, long value) -
set
-
setSafe
-
setValueCount
public void setValueCount(int valueCount) Description copied from interface:ValueVector.MutatorSets 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.- Specified by:
setValueCountin interfaceValueVector.Mutator- Parameters:
valueCount- value count to set.
-
reset
public void reset()Description copied from interface:ValueVector.MutatorResets the mutator to pristine state.- Specified by:
resetin interfaceValueVector.Mutator
-
generateTestData
public void generateTestData(int values) - Specified by:
generateTestDatain interfaceValueVector.Mutator
-
exchange
Description copied from interface:ValueVector.MutatorExchanges state with the mutator of another mutator. Used when exchanging state with another vector.- Specified by:
exchangein interfaceValueVector.Mutator
-