Class ResettableExternalBuffer.BufferIterator

java.lang.Object
org.apache.flink.table.runtime.util.ResettableExternalBuffer.BufferIterator
All Implemented Interfaces:
Closeable, AutoCloseable, ResettableRowBuffer.ResettableIterator, RowIterator<org.apache.flink.table.data.binary.BinaryRowData>
Enclosing class:
ResettableExternalBuffer

public class ResettableExternalBuffer.BufferIterator extends Object implements ResettableRowBuffer.ResettableIterator
Iterator of external buffer.
  • Method Details

    • reset

      public void reset() throws IOException
      Description copied from interface: ResettableRowBuffer.ResettableIterator
      Re-initialize the iterator, start from begin row.
      Specified by:
      reset in interface ResettableRowBuffer.ResettableIterator
      Throws:
      IOException
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • 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 calling RowIterator.getRow().
      Specified by:
      advanceNext in interface RowIterator<org.apache.flink.table.data.binary.BinaryRowData>
    • getRow

      public org.apache.flink.table.data.binary.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 interface RowIterator<org.apache.flink.table.data.binary.BinaryRowData>