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 Details

    • getVectorWithValues

      public UInt1Vector getVectorWithValues()
    • setIndexDefined

      public void setIndexDefined(int index)
      Description copied from interface: NullableVectorDefinitionSetter
      Set value at position "index" to be defined.
      Specified by:
      setIndexDefined in interface NullableVectorDefinitionSetter
      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 interface NullableVectorDefinitionSetter
      Parameters:
      index - value position
      numValues - 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 set
      value - value to write
    • setNull

      public void setNull(int index)
    • setSkipNull

      public void setSkipNull(int index, UInt1Holder holder)
    • setSkipNull

      public void setSkipNull(int index, NullableUInt1Holder holder)
    • set

      public void set(int index, NullableUInt1Holder holder)
    • set

      public void set(int index, UInt1Holder holder)
    • 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

      public void setSafe(int index, NullableUInt1Holder value)
    • setSafe

      public void setSafe(int index, UInt1Holder value)
    • 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 interface ValueVector.Mutator
      Parameters:
      valueCount - value count to set.
    • generateTestData

      public void generateTestData(int valueCount)
      Specified by:
      generateTestData in interface ValueVector.Mutator
      Overrides:
      generateTestData in class BaseValueVector.BaseMutator
    • reset

      public void reset()
      Description copied from interface: ValueVector.Mutator
      Resets the mutator to pristine state.
      Specified by:
      reset in interface ValueVector.Mutator
      Overrides:
      reset in class BaseValueVector.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 interface NullableVector.Mutator
      Parameters:
      n - the value of the last set field used to fill empties
    • exchange

      public void exchange(ValueVector.Mutator other)
      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 interface ValueVector.Mutator
      Overrides:
      exchange in class BaseValueVector.BaseMutator
    • fromNotNullable

      public void fromNotNullable(UInt1Vector srce)