public interface MapJoinTableContainer extends MemoryEstimate
| Modifier and Type | Interface and Description |
|---|---|
static interface |
MapJoinTableContainer.NonMatchedSmallTableIterator
For FULL OUTER MapJoin: Iterates through the Small Table hash table and returns the key and
value rows for any non-matched keys.
|
static interface |
MapJoinTableContainer.ReusableGetAdaptor
Retrieve rows from hashtable key by key, one key at a time, w/o copying the structures
for each key.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the contents of the table.
|
MapJoinTableContainer.ReusableGetAdaptor |
createGetter(MapJoinKey keyTypeFromLoader)
Creates reusable get adaptor that can be used to retrieve rows from the table
based on either vectorized or non-vectorized input rows to MapJoinOperator.
|
MapJoinTableContainer.NonMatchedSmallTableIterator |
createNonMatchedSmallTableIterator(MatchTracker matchTracker)
Creates an iterator for going through the hash table and returns the key and value rows for any
non-matched keys.
|
void |
dumpMetrics() |
MapJoinKey |
getAnyKey() |
String |
getKey()
Return the assigned key.
|
boolean |
hasSpill()
Checks if the container has spilled any data onto disk.
|
MapJoinKey |
putRow(org.apache.hadoop.io.Writable currentKey,
org.apache.hadoop.io.Writable currentValue)
Adds row from input to the table.
|
void |
seal()
Indicates to the container that the puts have ended; table is now r/o.
|
void |
setKey(String key)
Assign a key to the container, which can be used to cache it.
|
void |
setSerde(MapJoinObjectSerDeContext keyCtx,
MapJoinObjectSerDeContext valCtx) |
int |
size()
Return the size of the hash table.
|
getEstimatedMemorySizeMapJoinKey putRow(org.apache.hadoop.io.Writable currentKey, org.apache.hadoop.io.Writable currentValue) throws SerDeException, HiveException, IOException
SerDeExceptionHiveExceptionIOExceptionvoid seal()
MapJoinTableContainer.ReusableGetAdaptor createGetter(MapJoinKey keyTypeFromLoader)
keyTypeFromLoader - Last key from hash table loader, to determine key type used
when loading hashtable (if it can vary).MapJoinTableContainer.NonMatchedSmallTableIterator createNonMatchedSmallTableIterator(MatchTracker matchTracker)
void clear()
MapJoinKey getAnyKey()
void dumpMetrics()
boolean hasSpill()
int size()
void setSerde(MapJoinObjectSerDeContext keyCtx, MapJoinObjectSerDeContext valCtx) throws SerDeException
SerDeExceptionvoid setKey(String key)
String getKey()
Copyright © 2022 The Apache Software Foundation. All rights reserved.