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
-
Method Summary
Modifier and TypeMethodDescriptionint
add
(int index) 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.Methods inherited from class org.apache.drill.exec.vector.complex.BaseRepeatedValueVector.BaseRepeatedMutator
getInnerValueCountAt
Methods inherited from class org.apache.drill.exec.vector.BaseValueVector.BaseMutator
exchange, generateTestData, reset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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.RepeatedMutator
Starts a new value that is a container of cells.- Specified by:
startNewValue
in interfaceRepeatedValueVector.RepeatedMutator
- Overrides:
startNewValue
in classBaseRepeatedValueVector.BaseRepeatedMutator
- 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
- Overrides:
setValueCount
in classBaseRepeatedValueVector.BaseRepeatedMutator
- Parameters:
topLevelValueCount
- value count to set.
-
add
public int add(int index)
-