public class MapJoinBytesTableContainer extends Object implements MapJoinTableContainer, MapJoinTableContainerDirectAccess
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MapJoinBytesTableContainer.DirectKeyValueWriter |
static interface |
MapJoinBytesTableContainer.KeyValueHelper |
MapJoinTableContainer.ReusableGetAdaptor| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_OBJECT_INSPECTOR_MEMORY_SIZE |
| Constructor and Description |
|---|
MapJoinBytesTableContainer(BytesBytesMultiHashMap hashMap) |
MapJoinBytesTableContainer(org.apache.hadoop.conf.Configuration hconf,
MapJoinObjectSerDeContext valCtx,
long keyCount,
long memUsage) |
| 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.
|
void |
dumpMetrics() |
MapJoinKey |
getAnyKey() |
static List<Object> |
getComplexFieldsAsList(LazyBinaryStruct lazyBinaryStruct,
ArrayList<Object> objectArrayBuffer,
LazyBinaryStructObjectInspector lazyBinaryStructObjectInspector) |
long |
getEstimatedMemorySize()
Returns estimated memory size based
JavaDataModel |
static boolean |
hasComplexObjects(LazyBinaryStructObjectInspector lazyBinaryStructObjectInspector) |
boolean |
hasSpill()
Checks if the container has spilled any data onto disk.
|
static boolean |
isSupportedKey(ObjectInspector keyOi) |
void |
put(org.apache.hadoop.io.Writable currentKey,
org.apache.hadoop.io.Writable currentValue) |
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 |
setInternalValueOi(LazyBinaryStructObjectInspector internalValueOi) |
void |
setNotNullMarkers(byte[] notNullMarkers) |
void |
setNullMarkers(byte[] nullMarkers) |
void |
setSerde(MapJoinObjectSerDeContext keyContext,
MapJoinObjectSerDeContext valueContext) |
void |
setSortableSortOrders(boolean[] sortableSortOrders) |
int |
size()
Return the size of the hash table
|
public static final long DEFAULT_OBJECT_INSPECTOR_MEMORY_SIZE
public MapJoinBytesTableContainer(org.apache.hadoop.conf.Configuration hconf,
MapJoinObjectSerDeContext valCtx,
long keyCount,
long memUsage)
throws SerDeException
SerDeExceptionpublic MapJoinBytesTableContainer(BytesBytesMultiHashMap hashMap)
public void setInternalValueOi(LazyBinaryStructObjectInspector internalValueOi)
public void setSortableSortOrders(boolean[] sortableSortOrders)
public void setNullMarkers(byte[] nullMarkers)
public void setNotNullMarkers(byte[] notNullMarkers)
public void setSerde(MapJoinObjectSerDeContext keyContext, MapJoinObjectSerDeContext valueContext) throws SerDeException
setSerde in interface MapJoinTableContainerSerDeExceptionpublic MapJoinKey putRow(org.apache.hadoop.io.Writable currentKey, org.apache.hadoop.io.Writable currentValue) throws SerDeException
MapJoinTableContainerputRow in interface MapJoinTableContainerSerDeExceptionpublic void clear()
MapJoinTableContainerclear in interface MapJoinTableContainerpublic MapJoinKey getAnyKey()
getAnyKey in interface MapJoinTableContainerpublic MapJoinTableContainer.ReusableGetAdaptor createGetter(MapJoinKey keyTypeFromLoader)
MapJoinTableContainercreateGetter in interface MapJoinTableContainerkeyTypeFromLoader - Last key from hash table loader, to determine key type used
when loading hashtable (if it can vary).public void seal()
MapJoinTableContainerseal in interface MapJoinTableContainerpublic void put(org.apache.hadoop.io.Writable currentKey,
org.apache.hadoop.io.Writable currentValue)
throws SerDeException
put in interface MapJoinTableContainerDirectAccessSerDeExceptionpublic static boolean hasComplexObjects(LazyBinaryStructObjectInspector lazyBinaryStructObjectInspector)
public static List<Object> getComplexFieldsAsList(LazyBinaryStruct lazyBinaryStruct, ArrayList<Object> objectArrayBuffer, LazyBinaryStructObjectInspector lazyBinaryStructObjectInspector)
public static boolean isSupportedKey(ObjectInspector keyOi)
public void dumpMetrics()
dumpMetrics in interface MapJoinTableContainerpublic boolean hasSpill()
MapJoinTableContainerhasSpill in interface MapJoinTableContainerpublic int size()
MapJoinTableContainersize in interface MapJoinTableContainerpublic long getEstimatedMemorySize()
MemoryEstimateJavaDataModelgetEstimatedMemorySize in interface MemoryEstimateCopyright © 2019 The Apache Software Foundation. All Rights Reserved.