Class NullableIntVector.Mutator

java.lang.Object
org.apache.drill.exec.vector.BaseValueVector.BaseMutator
org.apache.drill.exec.vector.NullableIntVector.Mutator
All Implemented Interfaces:
NullableVector.Mutator, NullableVectorDefinitionSetter, ValueVector.Mutator
Enclosing class:
NullableIntVector

public final class NullableIntVector.Mutator extends BaseValueVector.BaseMutator implements NullableVectorDefinitionSetter, NullableVector.Mutator
  • Method Details

    • getVectorWithValues

      public IntVector 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, IntHolder holder)
    • setSkipNull

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

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

      public void set(int index, IntHolder holder)
    • isSafe

      public boolean isSafe(int outIndex)
    • set

      public void set(int index, int isSet, int valueField)
    • setSafe

      public void setSafe(int index, int isSet, int valueField)
    • setSafe

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

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

      public void setSafe(int index, int 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(IntVector srce)