Class ResettableExternalBuffer.BufferIterator
- java.lang.Object
-
- org.apache.flink.table.runtime.util.ResettableExternalBuffer.BufferIterator
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ResettableRowBuffer.ResettableIterator
,RowIterator<BinaryRowData>
- Enclosing class:
- ResettableExternalBuffer
public class ResettableExternalBuffer.BufferIterator extends Object implements ResettableRowBuffer.ResettableIterator
Iterator of external buffer.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
advanceNext()
Advance this iterator by a single row.void
close()
BinaryRowData
getRow()
Retrieve the row from this iterator.void
reset()
Re-initialize the iterator, start from begin row.
-
-
-
Method Detail
-
reset
public void reset() throws IOException
Description copied from interface:ResettableRowBuffer.ResettableIterator
Re-initialize the iterator, start from begin row.- Specified by:
reset
in interfaceResettableRowBuffer.ResettableIterator
- Throws:
IOException
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
advanceNext
public boolean advanceNext()
Description copied from interface:RowIterator
Advance this iterator by a single row. Returns `false` if this iterator has no more rows and `true` otherwise. If this returns `true`, then the new row can be retrieved by callingRowIterator.getRow()
.- Specified by:
advanceNext
in interfaceRowIterator<BinaryRowData>
-
getRow
public BinaryRowData getRow()
Description copied from interface:RowIterator
Retrieve the row from this iterator. This method is idempotent. It is illegal to call this method after [[advanceNext()]] has returned `false`.- Specified by:
getRow
in interfaceRowIterator<BinaryRowData>
-
-