Class HashJoinHelper

java.lang.Object
org.apache.drill.exec.physical.impl.join.HashJoinHelper

public class HashJoinHelper extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • addStartIndexBatch

      public void addStartIndexBatch() throws SchemaChangeException
      Throws:
      SchemaChangeException
    • getNewSV4

      public SelectionVector4 getNewSV4(int recordCount) throws SchemaChangeException
      Throws:
      SchemaChangeException
    • addNewBatch

      public void addNewBatch(int recordCount) throws SchemaChangeException
      Throws:
      SchemaChangeException
    • getStartIndex

      public int getStartIndex(int keyIndex)
      Takes a composite index for a key produced by HashTable.probeForKey(int, int), and uses it to look up the index of the first original key in the original data.
      Parameters:
      keyIndex - A composite index for a key produced by HashTable.probeForKey(int, int)
      Returns:
      The composite index for the first added key record in the original data.
    • getNextIndex

      public int getNextIndex(int currentIdx)
      Takes a composite index for a key produced by getStartIndex(int), and returns the composite index for the next record in the list of records that match a key. The result is a composite index for a record within the original data set.
      Parameters:
      currentIdx - A composite index for a key produced by getStartIndex(int).
      Returns:
      The composite index for the next record in the list of records that match a key. The result is a composite index for a record within the original data set.
    • getNextUnmatchedIndex

      public com.carrotsearch.hppc.IntArrayList getNextUnmatchedIndex()
    • setRecordMatched

      public boolean setRecordMatched(int index)
    • setCurrentIndex

      public void setCurrentIndex(int keyIndex, int batchIndex, int recordIndex) throws SchemaChangeException
      Throws:
      SchemaChangeException
    • clear

      public void clear()