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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
exchange
(ValueVector.Mutator other) Exchanges state with the mutator of another mutator.void
generateTestData
(int values) void
reset()
Resets the mutator to pristine state.void
protected void
set
(int index, ObjectHolder holder) boolean
setSafe
(int index, long value) boolean
setSafe
(int index, ObjectHolder holder) void
setValueCount
(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.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.- Specified by:
setValueCount
in interfaceValueVector.Mutator
- Parameters:
valueCount
- value count to set.
-
reset
public void reset()Description copied from interface:ValueVector.Mutator
Resets the mutator to pristine state.- Specified by:
reset
in interfaceValueVector.Mutator
-
generateTestData
public void generateTestData(int values) - Specified by:
generateTestData
in interfaceValueVector.Mutator
-
exchange
Description copied from interface:ValueVector.Mutator
Exchanges state with the mutator of another mutator. Used when exchanging state with another vector.- Specified by:
exchange
in interfaceValueVector.Mutator
-