public class ReOpenableMutableHashTable<BT,PT> extends MutableHashTable<BT,PT>
MutableHashTable.HashBucketIterator<BT,PT>, MutableHashTable.ProbeIterator<PT>, MutableHashTable.UnmatchedBuildIterator<BT,PT>availableMemory, buckets, bucketsPerSegmentBits, bucketsPerSegmentMask, buildSideComparator, buildSideSerializer, closed, currentEnumerator, currentRecursionDepth, furtherPartitioning, ioManager, keepBuildSidePartitions, numBuckets, partitionsBeingBuilt, probeIterator, probeSideSerializer, segmentSize, writeBehindBuffers, writeBehindBuffersAvailable| Constructor and Description |
|---|
ReOpenableMutableHashTable(org.apache.flink.api.common.typeutils.TypeSerializer<BT> buildSideSerializer,
org.apache.flink.api.common.typeutils.TypeSerializer<PT> probeSideSerializer,
org.apache.flink.api.common.typeutils.TypeComparator<BT> buildSideComparator,
org.apache.flink.api.common.typeutils.TypeComparator<PT> probeSideComparator,
org.apache.flink.api.common.typeutils.TypePairComparator<PT,BT> comparator,
List<org.apache.flink.core.memory.MemorySegment> memorySegments,
IOManager ioManager,
boolean useBitmapFilters) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the hash table.
|
protected HashPartition<BT,PT> |
getNewInMemoryPartition(int number,
int recursionLevel)
Returns a new inMemoryPartition object.
|
void |
open(org.apache.flink.util.MutableObjectIterator<BT> buildSide,
org.apache.flink.util.MutableObjectIterator<PT> probeSide,
boolean buildSideOuterJoin)
Opens the hash join.
|
protected boolean |
prepareNextPartition() |
protected void |
releaseTable()
Releases the table (the array of buckets) and returns the occupied memory segments to the
list of free segments.
|
void |
reopenProbe(org.apache.flink.util.MutableObjectIterator<PT> probeInput) |
abort, assignPartition, buildBloomFilterForBucketsInPartition, buildInitialTable, buildTableFromSpilledPartition, clearPartitions, createPartitions, getBuildSideIterator, getCurrentProbeRecord, getFreedMemory, getInitialTableSize, getMatchesFor, getNumWriteBehindBuffers, getPartitioningFanOutNoEstimates, getProbeSideComparator, hash, initTable, insertIntoTable, nextRecord, nextSegment, open, processProbeIter, processUnmatchedBuildIter, spillPartitionpublic ReOpenableMutableHashTable(org.apache.flink.api.common.typeutils.TypeSerializer<BT> buildSideSerializer, org.apache.flink.api.common.typeutils.TypeSerializer<PT> probeSideSerializer, org.apache.flink.api.common.typeutils.TypeComparator<BT> buildSideComparator, org.apache.flink.api.common.typeutils.TypeComparator<PT> probeSideComparator, org.apache.flink.api.common.typeutils.TypePairComparator<PT,BT> comparator, List<org.apache.flink.core.memory.MemorySegment> memorySegments, IOManager ioManager, boolean useBitmapFilters)
public void open(org.apache.flink.util.MutableObjectIterator<BT> buildSide, org.apache.flink.util.MutableObjectIterator<PT> probeSide, boolean buildSideOuterJoin) throws IOException
MutableHashTableopen in class MutableHashTable<BT,PT>buildSide - Build side input.probeSide - Probe side input.buildSideOuterJoin - Whether outer join on build side.IOException - Thrown, if an I/O problem occurs while spilling a partition.public void reopenProbe(org.apache.flink.util.MutableObjectIterator<PT> probeInput) throws IOException
IOExceptionprotected boolean prepareNextPartition()
throws IOException
prepareNextPartition in class MutableHashTable<BT,PT>IOExceptionprotected void releaseTable()
MutableHashTablereleaseTable in class MutableHashTable<BT,PT>protected HashPartition<BT,PT> getNewInMemoryPartition(int number, int recursionLevel)
MutableHashTablegetNewInMemoryPartition in class MutableHashTable<BT,PT>public void close()
MutableHashTableclose in class MutableHashTable<BT,PT>Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.