Class AbstractRepeatedMapVector.Mutator
java.lang.Object
org.apache.drill.exec.vector.complex.AbstractRepeatedMapVector.Mutator
- All Implemented Interfaces:
RepeatedValueVector.RepeatedMutator
,ValueVector.Mutator
- Direct Known Subclasses:
DictVector.Mutator
,RepeatedMapVector.Mutator
- Enclosing class:
- AbstractRepeatedMapVector
public abstract class AbstractRepeatedMapVector.Mutator
extends Object
implements RepeatedValueVector.RepeatedMutator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
add
(int index) void
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
setValueCount
(int topLevelValueCount) Sets the number of values that is stored in this vector to the given value count.void
startNewValue
(int index) Starts a new value that is a container of cells.
-
Constructor Details
-
Mutator
public Mutator()
-
-
Method Details
-
startNewValue
public void startNewValue(int index) Description copied from interface:RepeatedValueVector.RepeatedMutator
Starts a new value that is a container of cells.- Specified by:
startNewValue
in interfaceRepeatedValueVector.RepeatedMutator
- Parameters:
index
- index of new value to start
-
setValueCount
public void setValueCount(int topLevelValueCount) 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:
topLevelValueCount
- 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
-
add
public int add(int index) -
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
-