public class ReusingBuildFirstHashJoinIterator<V1,V2,O> extends HashJoinIteratorBase implements JoinTaskIterator<V1,V2,O>
JoinTaskIterator that
uses a hybrid-hash-join internally to match the records with equal key. The build side of the
hash is the first input of the match.| Modifier and Type | Field and Description |
|---|---|
protected MutableHashTable<V1,V2> |
hashJoin |
protected org.apache.flink.api.common.typeutils.TypeSerializer<V2> |
probeSideSerializer |
| Constructor and Description |
|---|
ReusingBuildFirstHashJoinIterator(org.apache.flink.util.MutableObjectIterator<V1> firstInput,
org.apache.flink.util.MutableObjectIterator<V2> secondInput,
org.apache.flink.api.common.typeutils.TypeSerializer<V1> serializer1,
org.apache.flink.api.common.typeutils.TypeComparator<V1> comparator1,
org.apache.flink.api.common.typeutils.TypeSerializer<V2> serializer2,
org.apache.flink.api.common.typeutils.TypeComparator<V2> comparator2,
org.apache.flink.api.common.typeutils.TypePairComparator<V2,V1> pairComparator,
MemoryManager memManager,
IOManager ioManager,
AbstractInvokable ownerTask,
double memoryFraction,
boolean probeSideOuterJoin,
boolean buildSideOuterJoin,
boolean useBitmapFilters) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Aborts the matching process.
|
boolean |
callWithNextKey(org.apache.flink.api.common.functions.FlatJoinFunction<V1,V2,O> matchFunction,
org.apache.flink.util.Collector<O> collector)
Moves the internal pointer to the next key that both inputs share.
|
void |
close()
General-purpose close method.
|
void |
open()
General-purpose open method.
|
getHashJoinprotected final MutableHashTable<V1,V2> hashJoin
protected final org.apache.flink.api.common.typeutils.TypeSerializer<V2> probeSideSerializer
public ReusingBuildFirstHashJoinIterator(org.apache.flink.util.MutableObjectIterator<V1> firstInput, org.apache.flink.util.MutableObjectIterator<V2> secondInput, org.apache.flink.api.common.typeutils.TypeSerializer<V1> serializer1, org.apache.flink.api.common.typeutils.TypeComparator<V1> comparator1, org.apache.flink.api.common.typeutils.TypeSerializer<V2> serializer2, org.apache.flink.api.common.typeutils.TypeComparator<V2> comparator2, org.apache.flink.api.common.typeutils.TypePairComparator<V2,V1> pairComparator, MemoryManager memManager, IOManager ioManager, AbstractInvokable ownerTask, double memoryFraction, boolean probeSideOuterJoin, boolean buildSideOuterJoin, boolean useBitmapFilters) throws MemoryAllocationException
MemoryAllocationExceptionpublic void open()
throws IOException,
MemoryAllocationException,
InterruptedException
JoinTaskIteratoropen in interface JoinTaskIterator<V1,V2,O>IOException - Thrown, if an I/O error occurred while preparing the data. An example is
a failing external sort.MemoryAllocationException - Thrown, if the internal strategy could not allocate the
memory it needs.InterruptedException - Thrown, if the thread was interrupted during the initialization
process.public void close()
JoinTaskIteratorclose in interface JoinTaskIterator<V1,V2,O>public final boolean callWithNextKey(org.apache.flink.api.common.functions.FlatJoinFunction<V1,V2,O> matchFunction, org.apache.flink.util.Collector<O> collector) throws Exception
JoinTaskIteratorcallWithNextKey in interface JoinTaskIterator<V1,V2,O>matchFunction - The match stub containing the match function which is called with the
keys.collector - The collector to pass the match function.Exception - Exceptions from the user code are forwarded.public void abort()
JoinTaskIteratorabort in interface JoinTaskIterator<V1,V2,O>Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.