Class ObjectVector.Mutator

java.lang.Object
org.apache.drill.exec.vector.ObjectVector.Mutator
All Implemented Interfaces:
ValueVector.Mutator
Enclosing class:
ObjectVector

public final class ObjectVector.Mutator extends Object implements ValueVector.Mutator
  • Constructor Details

    • Mutator

      public Mutator()
  • Method Details

    • set

      public void set(int index, Object obj)
    • setSafe

      public boolean setSafe(int index, long value)
    • set

      protected void set(int index, ObjectHolder holder)
    • setSafe

      public boolean setSafe(int index, ObjectHolder holder)
    • 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.
    • reset

      public void reset()
      Description copied from interface: ValueVector.Mutator
      Resets the mutator to pristine state.
      Specified by:
      reset in interface ValueVector.Mutator
    • generateTestData

      public void generateTestData(int values)
      Specified by:
      generateTestData in interface ValueVector.Mutator
    • 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