public class VectorMapJoinFastLongHashMap extends VectorMapJoinFastLongHashTable implements VectorMapJoinLongHashMap, MemoryEstimate
| Modifier and Type | Class and Description |
|---|---|
static class |
VectorMapJoinFastLongHashMap.NonMatchedLongHashMapIterator |
| Modifier and Type | Field and Description |
|---|---|
protected VectorMapJoinFastValueStore |
valueStore |
LOG, slotPairsestimatedKeyCount, 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 |
|---|
VectorMapJoinFastLongHashMap(boolean isFullOuter,
boolean minMaxEnabled,
VectorMapJoinDesc.HashTableKeyType hashTableKeyType,
int initialCapacity,
float loadFactor,
int writeBuffersSize,
long estimatedKeyCount,
TableDesc tableDesc) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFullOuterNullKeyValue(org.apache.hadoop.io.BytesWritable currentValue) |
void |
assignSlot(int slot,
long key,
boolean isNewKey,
org.apache.hadoop.io.BytesWritable currentValue) |
boolean |
containsLongKey(long currentKey) |
VectorMapJoinHashMapResult |
createHashMapResult() |
VectorMapJoinNonMatchedIterator |
createNonMatchedIterator(MatchTracker matchTracker) |
long |
getEstimatedMemorySize() |
JoinUtil.JoinResult |
lookup(long key,
VectorMapJoinHashMapResult hashMapResult) |
JoinUtil.JoinResult |
lookup(long key,
VectorMapJoinHashMapResult hashMapResult,
MatchTracker matchTracker) |
void |
putRow(long hashCode,
org.apache.hadoop.io.BytesWritable currentKey,
org.apache.hadoop.io.BytesWritable currentValue) |
void |
testPutRow(long currentKey,
byte[] currentValue) |
adaptPutRow, add, containsKey, findReadSlot, max, min, useMinMaxcheckResize, createMatchTracker, size, spillPartitionId, throwExpandErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmax, min, useMinMaxcreateMatchTracker, size, spillPartitionIdprotected VectorMapJoinFastValueStore valueStore
public VectorMapJoinFastLongHashMap(boolean isFullOuter,
boolean minMaxEnabled,
VectorMapJoinDesc.HashTableKeyType hashTableKeyType,
int initialCapacity,
float loadFactor,
int writeBuffersSize,
long estimatedKeyCount,
TableDesc tableDesc)
public VectorMapJoinHashMapResult createHashMapResult()
createHashMapResult in interface VectorMapJoinHashMappublic VectorMapJoinNonMatchedIterator createNonMatchedIterator(MatchTracker matchTracker)
createNonMatchedIterator in interface VectorMapJoinHashTablecreateNonMatchedIterator in class VectorMapJoinFastHashTablepublic 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 void testPutRow(long currentKey,
byte[] currentValue)
throws HiveException,
IOException
HiveExceptionIOExceptionpublic void assignSlot(int slot,
long key,
boolean isNewKey,
org.apache.hadoop.io.BytesWritable currentValue)
assignSlot in class VectorMapJoinFastLongHashTablepublic JoinUtil.JoinResult lookup(long key, VectorMapJoinHashMapResult hashMapResult)
lookup in interface VectorMapJoinLongHashMappublic JoinUtil.JoinResult lookup(long key, VectorMapJoinHashMapResult hashMapResult, MatchTracker matchTracker)
lookup in interface VectorMapJoinLongHashMappublic void addFullOuterNullKeyValue(org.apache.hadoop.io.BytesWritable currentValue)
public long getEstimatedMemorySize()
getEstimatedMemorySize in interface MemoryEstimategetEstimatedMemorySize in class VectorMapJoinFastLongHashTableCopyright © 2022 The Apache Software Foundation. All rights reserved.