Class SelectionVector4

java.lang.Object
org.apache.drill.exec.record.selection.SelectionVector4
All Implemented Interfaces:
AutoCloseable

public class SelectionVector4 extends Object implements AutoCloseable
  • Constructor Details

    • SelectionVector4

      public SelectionVector4(io.netty.buffer.ByteBuf vector, int recordCount, int batchRecordCount)
    • SelectionVector4

      public SelectionVector4(BufferAllocator allocator, int recordCount)
  • Method Details

    • getTotalCount

      public int getTotalCount()
    • getCount

      public int getCount()
    • setCount

      public void setCount(int length)
    • set

      public void set(int index, int compound)
    • set

      public void set(int index, int recordBatch, int recordIndex)
    • get

      public int get(int index)
    • createNewWrapperCurrent

      public SelectionVector4 createNewWrapperCurrent(int batchRecordCount)
      Caution: This method shares the underlying buffer between this vector and the newly created one.
      Parameters:
      batchRecordCount - this will be used when creating the new vector
      Returns:
      Newly created single batch SelectionVector4.
    • createNewWrapperCurrent

      public SelectionVector4 createNewWrapperCurrent()
      Caution: This method shares the underlying buffer between this vector and the newly created one.
      Returns:
      Newly created single batch SelectionVector4.
    • next

      public boolean next()
    • hasNext

      public boolean hasNext()
    • clear

      public void clear()
    • copy

      public void copy(SelectionVector4 fromSV4)
    • getBatchIndex

      public static int getBatchIndex(int sv4Index)
    • getRecordIndex

      public static int getRecordIndex(int sv4Index)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • toString

      public String toString()
      Overrides:
      toString in class Object