public interface HashTable
Modifier and Type | Interface and Description |
---|---|
static class |
HashTable.PutStatus |
Modifier and Type | Field and Description |
---|---|
static int |
BATCH_MASK |
static int |
BATCH_SIZE
The batch size used for internal batch holders
|
static float |
DEFAULT_LOAD_FACTOR
The default load factor of a hash table.
|
static int |
MAXIMUM_CAPACITY
The maximum capacity of the hash table (in terms of number of buckets).
|
static TemplateClassDefinition<HashTable> |
TEMPLATE_DEFINITION |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
containsKey(int incomingRowIdx,
boolean isProbe) |
int |
getHashCode(int incomingRowIdx) |
void |
getStats(HashTableStats stats) |
boolean |
isEmpty() |
boolean |
outputKeys(int batchIdx,
VectorContainer outContainer,
int outStartIndex,
int numRecords,
int numExpectedRecords) |
HashTable.PutStatus |
put(int incomingRowIdx,
IndexPointer htIdxHolder,
int hashCode) |
void |
reinit(RecordBatch newIncoming) |
void |
reset() |
void |
setMaxVarcharSize(int size) |
void |
setup(HashTableConfig htConfig,
BufferAllocator allocator,
RecordBatch incomingBuild,
RecordBatch incomingProbe,
RecordBatch outgoing,
VectorContainer htContainerOrig) |
int |
size() |
void |
updateBatches() |
static final TemplateClassDefinition<HashTable> TEMPLATE_DEFINITION
static final int MAXIMUM_CAPACITY
static final float DEFAULT_LOAD_FACTOR
static final int BATCH_SIZE
static final int BATCH_MASK
void setup(HashTableConfig htConfig, BufferAllocator allocator, RecordBatch incomingBuild, RecordBatch incomingProbe, RecordBatch outgoing, VectorContainer htContainerOrig)
void updateBatches() throws SchemaChangeException
SchemaChangeException
int getHashCode(int incomingRowIdx) throws SchemaChangeException
SchemaChangeException
HashTable.PutStatus put(int incomingRowIdx, IndexPointer htIdxHolder, int hashCode) throws SchemaChangeException, RetryAfterSpillException
int containsKey(int incomingRowIdx, boolean isProbe) throws SchemaChangeException
SchemaChangeException
void getStats(HashTableStats stats)
int size()
boolean isEmpty()
void clear()
void reinit(RecordBatch newIncoming)
void reset()
void setMaxVarcharSize(int size)
boolean outputKeys(int batchIdx, VectorContainer outContainer, int outStartIndex, int numRecords, int numExpectedRecords)
Copyright © 2018 The Apache Software Foundation. All rights reserved.