Class NullableTimeVector.Mutator

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

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

    • getVectorWithValues

      public TimeVector 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, TimeHolder holder)
    • setSkipNull

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

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

      public void set(int index, TimeHolder 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, NullableTimeHolder value)
    • setSafe

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