public abstract class SortMergeJoinIterator extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
protected BinaryRowData |
bufferedKey |
protected BinaryRowData |
bufferedRow |
protected RecordComparator |
keyComparator |
protected ResettableExternalBuffer |
matchBuffer |
protected BinaryRowData |
matchKey |
protected BinaryRowData |
probeKey |
Constructor and Description |
---|
SortMergeJoinIterator(BinaryRowDataSerializer probeSerializer,
BinaryRowDataSerializer bufferedSerializer,
Projection<RowData,BinaryRowData> probeProjection,
Projection<RowData,BinaryRowData> bufferedProjection,
RecordComparator keyComparator,
MutableObjectIterator<RowData> probeIterator,
MutableObjectIterator<BinaryRowData> bufferedIterator,
ResettableExternalBuffer buffer,
boolean[] filterNulls) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
advanceNextSuitableBufferedRow() |
protected boolean |
advanceNextSuitableProbeRow() |
protected void |
bufferMatchingRows() |
void |
close() |
ResettableExternalBuffer |
getMatchBuffer() |
BinaryRowData |
getMatchKey() |
RowData |
getProbeRow() |
protected boolean |
nextProbe() |
protected final RecordComparator keyComparator
protected BinaryRowData probeKey
protected BinaryRowData bufferedRow
protected BinaryRowData bufferedKey
protected BinaryRowData matchKey
protected ResettableExternalBuffer matchBuffer
public SortMergeJoinIterator(BinaryRowDataSerializer probeSerializer, BinaryRowDataSerializer bufferedSerializer, Projection<RowData,BinaryRowData> probeProjection, Projection<RowData,BinaryRowData> bufferedProjection, RecordComparator keyComparator, MutableObjectIterator<RowData> probeIterator, MutableObjectIterator<BinaryRowData> bufferedIterator, ResettableExternalBuffer buffer, boolean[] filterNulls) throws IOException
IOException
protected boolean advanceNextSuitableProbeRow() throws IOException
IOException
protected boolean advanceNextSuitableBufferedRow() throws IOException
IOException
protected boolean nextProbe() throws IOException
IOException
protected void bufferMatchingRows() throws IOException
IOException
public RowData getProbeRow()
public BinaryRowData getMatchKey()
public ResettableExternalBuffer getMatchBuffer()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.