Class SortMergeJoinFunction
java.lang.Object
org.apache.flink.table.runtime.operators.join.SortMergeJoinFunction
- All Implemented Interfaces:
Serializable
This function is used to process the main logic of sort merge join.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSortMergeJoinFunction(double externalBufferMemRatio, FlinkJoinType type, boolean leftIsSmaller, int maxNumFileHandles, boolean compressionEnabled, int compressionBlockSize, boolean asyncMergeEnabled, GeneratedJoinCondition condFuncCode, GeneratedProjection projectionCode1, GeneratedProjection projectionCode2, GeneratedNormalizedKeyComputer computer1, GeneratedRecordComparator comparator1, GeneratedNormalizedKeyComputer computer2, GeneratedRecordComparator comparator2, GeneratedRecordComparator genKeyComparator, boolean[] filterNulls) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidendInput(int inputId) voidopen(boolean adaptiveHashJoin, org.apache.flink.streaming.runtime.tasks.StreamTask<?, ?> taskContainer, org.apache.flink.streaming.api.graph.StreamConfig operatorConfig, StreamRecordCollector collector, long totalMemory, org.apache.flink.api.common.functions.RuntimeContext runtimeContext, org.apache.flink.metrics.groups.OperatorMetricGroup operatorMetricGroup) voidprocessElement1(org.apache.flink.table.data.RowData element) voidprocessElement2(org.apache.flink.table.data.RowData element)
-
Constructor Details
-
SortMergeJoinFunction
public SortMergeJoinFunction(double externalBufferMemRatio, FlinkJoinType type, boolean leftIsSmaller, int maxNumFileHandles, boolean compressionEnabled, int compressionBlockSize, boolean asyncMergeEnabled, GeneratedJoinCondition condFuncCode, GeneratedProjection projectionCode1, GeneratedProjection projectionCode2, GeneratedNormalizedKeyComputer computer1, GeneratedRecordComparator comparator1, GeneratedNormalizedKeyComputer computer2, GeneratedRecordComparator comparator2, GeneratedRecordComparator genKeyComparator, boolean[] filterNulls)
-
-
Method Details
-
open
public void open(boolean adaptiveHashJoin, org.apache.flink.streaming.runtime.tasks.StreamTask<?, ?> taskContainer, org.apache.flink.streaming.api.graph.StreamConfig operatorConfig, StreamRecordCollector collector, long totalMemory, org.apache.flink.api.common.functions.RuntimeContext runtimeContext, org.apache.flink.metrics.groups.OperatorMetricGroup operatorMetricGroup) throws Exception- Throws:
Exception
-
processElement1
- Throws:
Exception
-
processElement2
- Throws:
Exception
-
endInput
- Throws:
Exception
-
close
- Throws:
Exception
-