Class AbstractMutableHashTable<T>
java.lang.Object
org.apache.flink.runtime.operators.hash.AbstractMutableHashTable<T>
- Direct Known Subclasses:
CompactingHashTable,InPlaceMutableHashTable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.flink.api.common.typeutils.TypeComparator<T>The utilities to hash and compare the build side data types.protected final org.apache.flink.api.common.typeutils.TypeSerializer<T>The utilities to serialize the build side data types.protected booleanFlag to mark the table as open / closed.protected final ObjectThe lock to synchronize state changes (open / close) on -
Constructor Summary
ConstructorsConstructorDescriptionAbstractMutableHashTable(org.apache.flink.api.common.typeutils.TypeSerializer<T> buildSideSerializer, org.apache.flink.api.common.typeutils.TypeComparator<T> buildSideComparator) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidabort()abstract voidclose()Closes the hash table.org.apache.flink.api.common.typeutils.TypeComparator<T>org.apache.flink.api.common.typeutils.TypeSerializer<T>abstract org.apache.flink.util.MutableObjectIterator<T>abstract List<org.apache.flink.core.memory.MemorySegment>abstract <PT> AbstractHashTableProber<PT,T> getProber(org.apache.flink.api.common.typeutils.TypeComparator<PT> probeSideComparator, org.apache.flink.api.common.typeutils.TypePairComparator<PT, T> pairComparator) abstract voidabstract voidinsertOrReplaceRecord(T record) abstract voidopen()Initialize the hash table
-
Field Details
-
buildSideSerializer
The utilities to serialize the build side data types. -
buildSideComparator
The utilities to hash and compare the build side data types. -
stateLock
The lock to synchronize state changes (open / close) on -
closed
protected boolean closedFlag to mark the table as open / closed. Because we allow to open and close multiple times, the state is initially closed.
-
-
Constructor Details
-
AbstractMutableHashTable
-
-
Method Details
-
getBuildSideSerializer
-
getBuildSideComparator
-
open
public abstract void open()Initialize the hash table -
close
public abstract void close()Closes the hash table. This effectively releases all internal structures and closes all open files and removes them. The call to this method is valid both as a cleanup after the complete inputs were properly processed, and as a cancellation call, which cleans up all resources that are currently held by the hash table. If another process still accesses the hash table after close has been called, no operations will be performed. -
abort
public abstract void abort() -
getFreeMemory
-
insert
- Throws:
IOException
-
insertOrReplaceRecord
- Throws:
IOException
-
getEntryIterator
-
getProber
public abstract <PT> AbstractHashTableProber<PT,T> getProber(org.apache.flink.api.common.typeutils.TypeComparator<PT> probeSideComparator, org.apache.flink.api.common.typeutils.TypePairComparator<PT, T> pairComparator)
-