Class RepeatedDictVector.Mutator
java.lang.Object
org.apache.drill.exec.vector.BaseValueVector.BaseMutator
org.apache.drill.exec.vector.complex.BaseRepeatedValueVector.BaseRepeatedMutator
org.apache.drill.exec.vector.complex.RepeatedDictVector.Mutator
- All Implemented Interfaces:
RepeatedValueVector.RepeatedMutator,ValueVector.Mutator
- Enclosing class:
RepeatedDictVector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintadd(int index) 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.Methods inherited from class org.apache.drill.exec.vector.complex.BaseRepeatedValueVector.BaseRepeatedMutator
getInnerValueCountAtMethods inherited from class org.apache.drill.exec.vector.BaseValueVector.BaseMutator
exchange, generateTestData, resetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.drill.exec.vector.ValueVector.Mutator
exchange, generateTestData, reset
-
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- Overrides:
startNewValuein classBaseRepeatedValueVector.BaseRepeatedMutator- 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- Overrides:
setValueCountin classBaseRepeatedValueVector.BaseRepeatedMutator- Parameters:
topLevelValueCount- value count to set.
-
add
public int add(int index)
-