Class SortMergeJoinIterator
java.lang.Object
org.apache.flink.table.runtime.operators.join.SortMergeJoinIterator
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
SortMergeInnerJoinIterator,SortMergeOneSideOuterJoinIterator
Gets probeRow and match rows for inner/left/right join.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.flink.table.data.binary.BinaryRowDataprotected org.apache.flink.table.data.binary.BinaryRowDataprotected final RecordComparatorprotected ResettableExternalBufferprotected org.apache.flink.table.data.binary.BinaryRowDataprotected org.apache.flink.table.data.binary.BinaryRowData -
Constructor Summary
ConstructorsConstructorDescriptionSortMergeJoinIterator(BinaryRowDataSerializer probeSerializer, BinaryRowDataSerializer bufferedSerializer, Projection<org.apache.flink.table.data.RowData, org.apache.flink.table.data.binary.BinaryRowData> probeProjection, Projection<org.apache.flink.table.data.RowData, org.apache.flink.table.data.binary.BinaryRowData> bufferedProjection, RecordComparator keyComparator, org.apache.flink.util.MutableObjectIterator<org.apache.flink.table.data.RowData> probeIterator, org.apache.flink.util.MutableObjectIterator<org.apache.flink.table.data.binary.BinaryRowData> bufferedIterator, ResettableExternalBuffer buffer, boolean[] filterNulls) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected booleanprotected voidvoidclose()org.apache.flink.table.data.binary.BinaryRowDataorg.apache.flink.table.data.RowDataprotected boolean
-
Field Details
-
keyComparator
-
probeKey
protected org.apache.flink.table.data.binary.BinaryRowData probeKey -
bufferedRow
protected org.apache.flink.table.data.binary.BinaryRowData bufferedRow -
bufferedKey
protected org.apache.flink.table.data.binary.BinaryRowData bufferedKey -
matchKey
protected org.apache.flink.table.data.binary.BinaryRowData matchKey -
matchBuffer
-
-
Constructor Details
-
SortMergeJoinIterator
public SortMergeJoinIterator(BinaryRowDataSerializer probeSerializer, BinaryRowDataSerializer bufferedSerializer, Projection<org.apache.flink.table.data.RowData, org.apache.flink.table.data.binary.BinaryRowData> probeProjection, Projection<org.apache.flink.table.data.RowData, throws IOExceptionorg.apache.flink.table.data.binary.BinaryRowData> bufferedProjection, RecordComparator keyComparator, org.apache.flink.util.MutableObjectIterator<org.apache.flink.table.data.RowData> probeIterator, org.apache.flink.util.MutableObjectIterator<org.apache.flink.table.data.binary.BinaryRowData> bufferedIterator, ResettableExternalBuffer buffer, boolean[] filterNulls) - Throws:
IOException
-
-
Method Details
-
advanceNextSuitableProbeRow
- Throws:
IOException
-
advanceNextSuitableBufferedRow
- Throws:
IOException
-
nextProbe
- Throws:
IOException
-
bufferMatchingRows
- Throws:
IOException
-
getProbeRow
public org.apache.flink.table.data.RowData getProbeRow() -
getMatchKey
public org.apache.flink.table.data.binary.BinaryRowData getMatchKey() -
getMatchBuffer
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-