public class HashJoinHelper extends Object
Modifier and Type | Class and Description |
---|---|
class |
HashJoinHelper.BuildInfo |
Modifier and Type | Field and Description |
---|---|
static int |
LEFT_INPUT |
static int |
RIGHT_INPUT |
Constructor and Description |
---|
HashJoinHelper(FragmentContext context,
BufferAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
void |
addNewBatch(int recordCount) |
void |
addStartIndexBatch() |
void |
clear() |
SelectionVector4 |
getNewSV4(int recordCount) |
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. |
com.carrotsearch.hppc.IntArrayList |
getNextUnmatchedIndex() |
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. |
void |
setCurrentIndex(int keyIndex,
int batchIndex,
int recordIndex) |
boolean |
setRecordMatched(int index) |
public static final int LEFT_INPUT
public static final int RIGHT_INPUT
public HashJoinHelper(FragmentContext context, BufferAllocator allocator)
public void addStartIndexBatch() throws SchemaChangeException
SchemaChangeException
public SelectionVector4 getNewSV4(int recordCount) throws SchemaChangeException
SchemaChangeException
public void addNewBatch(int recordCount) throws SchemaChangeException
SchemaChangeException
public int getStartIndex(int keyIndex)
HashTable.probeForKey(int, int)
, and uses it to look up the
index of the first original key in the original data.keyIndex
- A composite index for a key produced by HashTable.probeForKey(int, int)
public int getNextIndex(int currentIdx)
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.currentIdx
- A composite index for a key produced by getStartIndex(int)
.public com.carrotsearch.hppc.IntArrayList getNextUnmatchedIndex()
public boolean setRecordMatched(int index)
public void setCurrentIndex(int keyIndex, int batchIndex, int recordIndex) throws SchemaChangeException
SchemaChangeException
public void clear()
Copyright © 2021 The Apache Software Foundation. All rights reserved.