Package org.apache.drill.exec.vector
Class NullableUInt1Vector.Mutator
java.lang.Object
org.apache.drill.exec.vector.BaseValueVector.BaseMutator
org.apache.drill.exec.vector.NullableUInt1Vector.Mutator
- All Implemented Interfaces:
NullableVector.Mutator
,NullableVectorDefinitionSetter
,ValueVector.Mutator
- Enclosing class:
- NullableUInt1Vector
public final class NullableUInt1Vector.Mutator
extends BaseValueVector.BaseMutator
implements NullableVectorDefinitionSetter, NullableVector.Mutator
-
Method Summary
Modifier and TypeMethodDescriptionvoid
exchange
(ValueVector.Mutator other) Exchanges state with the mutator of another mutator.void
fromNotNullable
(UInt1Vector srce) void
generateTestData
(int valueCount) boolean
isSafe
(int outIndex) void
reset()
Resets the mutator to pristine state.void
set
(int index, int value) Set the variable length element at the specified index to the supplied value.void
set
(int index, int isSet, byte valueField) void
set
(int index, NullableUInt1Holder holder) void
set
(int index, UInt1Holder holder) void
setIndexDefined
(int index) Set value at position "index" to be defined.void
setIndexDefined
(int index, int numValues) Set a contiguous set of values starting at position "index" to be defined.void
setNull
(int index) void
setSafe
(int index, byte value) void
setSafe
(int index, int isSet, byte valueField) void
setSafe
(int index, NullableUInt1Holder value) void
setSafe
(int index, UInt1Holder value) void
setSetCount
(int n) Used by the vector accessors to force the last set value.void
setSkipNull
(int index, NullableUInt1Holder holder) void
setSkipNull
(int index, UInt1Holder holder) void
setValueCount
(int valueCount) Sets the number of values that is stored in this vector to the given value count.
-
Method Details
-
getVectorWithValues
-
setIndexDefined
public void setIndexDefined(int index) Description copied from interface:NullableVectorDefinitionSetter
Set value at position "index" to be defined.- Specified by:
setIndexDefined
in interfaceNullableVectorDefinitionSetter
- Parameters:
index
- value position
-
setIndexDefined
public void setIndexDefined(int index, int numValues) Set a contiguous set of values starting at position "index" to be defined.- Specified by:
setIndexDefined
in interfaceNullableVectorDefinitionSetter
- Parameters:
index
- value positionnumValues
- of contiguous values
-
set
public void set(int index, int value) Set the variable length element at the specified index to the supplied value.- Parameters:
index
- position of the bit to setvalue
- value to write
-
setNull
public void setNull(int index) -
setSkipNull
-
setSkipNull
-
set
-
set
-
isSafe
public boolean isSafe(int outIndex) -
set
public void set(int index, int isSet, byte valueField) -
setSafe
public void setSafe(int index, int isSet, byte valueField) -
setSafe
-
setSafe
-
setSafe
public void setSafe(int index, byte value) -
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.- Specified by:
setValueCount
in interfaceValueVector.Mutator
- Parameters:
valueCount
- value count to set.
-
generateTestData
public void generateTestData(int valueCount) - Specified by:
generateTestData
in interfaceValueVector.Mutator
- Overrides:
generateTestData
in classBaseValueVector.BaseMutator
-
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
-
setSetCount
public void setSetCount(int n) Description copied from interface:NullableVector.Mutator
Used by the vector accessors to force the last set value.- Specified by:
setSetCount
in interfaceNullableVector.Mutator
- Parameters:
n
- the value of the last set field used to fill empties
-
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
- Overrides:
exchange
in classBaseValueVector.BaseMutator
-
fromNotNullable
-