public abstract class VectorMapJoinFastBytesHashTable extends VectorMapJoinFastHashTable implements VectorMapJoinBytesHashTable
| Modifier and Type | Field and Description |
|---|---|
protected long[] |
slots |
protected org.apache.hadoop.io.BytesWritable |
testKeyBytesWritable |
protected WriteBuffers.Position |
unsafeReadPos |
protected WriteBuffers |
writeBuffers |
estimatedKeyCount, FIRST_SIZE_UP, HIGHEST_INT_POWER_OF_2, isFullOuter, keysAssigned, largestNumberOfSteps, loadFactor, logicalHashBucketCount, logicalHashBucketMask, metricExpands, metricPutConflict, ONE_QUARTER_LIMIT, ONE_SIXTH_LIMIT, resizeThreshold, writeBuffersSize| Constructor and Description |
|---|
VectorMapJoinFastBytesHashTable(boolean isFullOuter,
int initialCapacity,
float loadFactor,
int writeBuffersSize,
long estimatedKeyCount) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
add(byte[] keyBytes,
int keyStart,
int keyLength,
org.apache.hadoop.io.BytesWritable currentValue,
long hashCode) |
boolean |
containsLongKey(long currentKey) |
protected void |
expandAndRehash() |
long |
getEstimatedMemorySize() |
void |
putRow(long hashCode,
org.apache.hadoop.io.BytesWritable currentKey,
org.apache.hadoop.io.BytesWritable currentValue) |
checkResize, createMatchTracker, createNonMatchedIterator, size, spillPartitionId, throwExpandErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateMatchTracker, createNonMatchedIterator, size, spillPartitionIdprotected WriteBuffers writeBuffers
protected WriteBuffers.Position unsafeReadPos
protected org.apache.hadoop.io.BytesWritable testKeyBytesWritable
protected long[] slots
public VectorMapJoinFastBytesHashTable(boolean isFullOuter,
int initialCapacity,
float loadFactor,
int writeBuffersSize,
long estimatedKeyCount)
public void putRow(long hashCode,
org.apache.hadoop.io.BytesWritable currentKey,
org.apache.hadoop.io.BytesWritable currentValue)
throws HiveException,
IOException
putRow in interface VectorMapJoinHashTablehashCode - current HashCode to avoid re-computationcurrentKey - The current Key in bytescurrentValue - The current Value in bytesHiveExceptionIOExceptionpublic boolean containsLongKey(long currentKey)
containsLongKey in interface VectorMapJoinHashTablecurrentKey - The key to check for existence.public abstract void add(byte[] keyBytes,
int keyStart,
int keyLength,
org.apache.hadoop.io.BytesWritable currentValue,
long hashCode)
protected void expandAndRehash()
public long getEstimatedMemorySize()
getEstimatedMemorySize in interface MemoryEstimategetEstimatedMemorySize in class VectorMapJoinFastHashTableCopyright © 2024 The Apache Software Foundation. All rights reserved.