Class BitVector.Accessor

java.lang.Object
org.apache.drill.exec.vector.BaseValueVector.BaseAccessor
org.apache.drill.exec.vector.BitVector.Accessor
All Implemented Interfaces:
ValueVector.Accessor
Enclosing class:
BitVector

public class BitVector.Accessor extends BaseValueVector.BaseAccessor
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final int
    get(int index)
    Get the byte holding the desired bit, then mask all other bits.
    final void
    get(int index, BitHolder holder)
     
    final void
    get(int index, NullableBitHolder holder)
     
    final Boolean
    getObject(int index)
    Get the Java Object representation of the element at the specified position.
    final int
    Returns the number of values that is stored in this vector.
    boolean
    isNull(int index)
    Returns true if the value at the given index is null, false otherwise.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Accessor

      public Accessor()
  • Method Details

    • get

      public final int get(int index)
      Get the byte holding the desired bit, then mask all other bits. Iff the result is 0, the bit was not set.
      Parameters:
      index - position of the bit in the vector
      Returns:
      1 if set, otherwise 0
    • isNull

      public boolean isNull(int index)
      Description copied from interface: ValueVector.Accessor
      Returns true if the value at the given index is null, false otherwise.
      Specified by:
      isNull in interface ValueVector.Accessor
      Overrides:
      isNull in class BaseValueVector.BaseAccessor
    • getObject

      public final Boolean getObject(int index)
      Description copied from interface: ValueVector.Accessor
      Get the Java Object representation of the element at the specified position. Useful for testing.
      Parameters:
      index - Index of the value to get
    • getValueCount

      public final int getValueCount()
      Description copied from interface: ValueVector.Accessor
      Returns the number of values that is stored in this vector.
    • get

      public final void get(int index, BitHolder holder)
    • get

      public final void get(int index, NullableBitHolder holder)