Class UnionVector.Mutator
java.lang.Object
org.apache.drill.exec.vector.BaseValueVector.BaseMutator
org.apache.drill.exec.vector.complex.UnionVector.Mutator
- All Implemented Interfaces:
ValueVector.Mutator
- Enclosing class:
- UnionVector
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
generateTestData
(int values) void
reset()
Resets the mutator to pristine state.void
setNull
(int index) void
setSafe
(int index, NullableBigIntHolder holder) void
setSafe
(int index, NullableBitHolder holder) void
setSafe
(int index, NullableDateHolder holder) void
setSafe
(int index, NullableFloat4Holder holder) void
setSafe
(int index, NullableFloat8Holder holder) void
setSafe
(int index, NullableIntervalDayHolder holder) void
setSafe
(int index, NullableIntervalHolder holder) void
setSafe
(int index, NullableIntervalYearHolder holder) void
setSafe
(int index, NullableIntHolder holder) void
setSafe
(int index, NullableSmallIntHolder holder) void
setSafe
(int index, NullableTimeHolder holder) void
setSafe
(int index, NullableTimeStampHolder holder) void
setSafe
(int index, NullableTinyIntHolder holder) void
setSafe
(int index, NullableUInt1Holder holder) void
setSafe
(int index, NullableUInt2Holder holder) void
setSafe
(int index, NullableUInt4Holder holder) void
setSafe
(int index, NullableUInt8Holder holder) void
setSafe
(int index, NullableVar16CharHolder holder) void
setSafe
(int index, NullableVarBinaryHolder holder) void
setSafe
(int index, NullableVarCharHolder holder) void
setSafe
(int index, NullableVarDecimalHolder holder) void
setSafe
(int index, UnionHolder holder) void
setType
(int index, TypeProtos.MinorType type) void
setValueCount
(int valueCount) Sets the number of values that is stored in this vector to the given value count.Methods inherited from class org.apache.drill.exec.vector.BaseValueVector.BaseMutator
exchange
-
Field Details
-
writer
-
-
Constructor Details
-
Mutator
public Mutator()
-
-
Method Details
-
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.- Parameters:
valueCount
- value count to set.
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setSafe
-
setType
-
setNull
public void setNull(int index) -
reset
public void reset()Description copied from interface:ValueVector.Mutator
Resets the mutator to pristine state.- Specified by:
reset
in interfaceValueVector.Mutator
- Overrides:
reset
in classBaseValueVector.BaseMutator
-
generateTestData
public void generateTestData(int values) - Specified by:
generateTestData
in interfaceValueVector.Mutator
- Overrides:
generateTestData
in classBaseValueVector.BaseMutator
-