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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintadd(int index) voidexchange(ValueVector.Mutator other) Exchanges state with the mutator of another mutator.voidgenerateTestData(int values) voidreset()Resets the mutator to pristine state.voidsetValueCount(int topLevelValueCount) Sets the number of values that is stored in this vector to the given value count.voidstartNewValue(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.RepeatedMutatorStarts a new value that is a container of cells.- Specified by:
startNewValuein interfaceRepeatedValueVector.RepeatedMutator- Parameters:
index- index of new value to start
-
setValueCount
public void setValueCount(int topLevelValueCount) 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:
topLevelValueCount- 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
-
add
public int add(int index) -
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
-