Class NullableVarBinaryVector.Mutator

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

  • Method Details

    • getVectorWithValues

      public VarBinaryVector 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, byte[] 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
    • fillEmpties

      protected void fillEmpties(int index)
      Fill in missing values up to, but not including, the given index.
      Parameters:
      index - the index about to be written, or the total vector length about to be set
    • setValueLengthSafe

      public void setValueLengthSafe(int index, int length)
      Specified by:
      setValueLengthSafe in interface VariableWidthVector.VariableWidthMutator
    • setSafe

      public void setSafe(int index, byte[] value, int start, int length)
    • setSafe

      public void setSafe(int index, ByteBuffer value, int start, int length)
    • setNull

      public void setNull(int index)
    • setSkipNull

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

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

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

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

      public boolean isSafe(int outIndex)
    • set

      public void set(int index, int isSet, int startField, int endField, DrillBuf bufferField)
    • setSafe

      public void setSafe(int index, int isSet, int startField, int endField, DrillBuf bufferField)
    • setSafe

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

      public void setSafe(int index, VarBinaryHolder 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.
    • setSafe

      public void setSafe(VarLenBulkInput<VarLenBulkEntry> input)
    • 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
    • getLastSet

      public int getLastSet()
    • 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(VarBinaryVector srce)