Interface ResettableRowBuffer

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
ResettableExternalBuffer

public interface ResettableRowBuffer extends Closeable
Resettable buffer that add RowData and return BinaryRowData iterator.

Instructions: 1.reset() 2.multi add(RowData) 3.complete() 4.multi newIterator() repeat the above steps or Closeable.close().

  • Method Details

    • reset

      void reset()
      Re-initialize the buffer state.
    • add

      void add(org.apache.flink.table.data.RowData row) throws IOException
      Appends the specified row to the end of this buffer.
      Throws:
      IOException
    • complete

      void complete()
      Finally, complete add.
    • newIterator

      Get a new iterator starting from first row.
    • newIterator

      ResettableRowBuffer.ResettableIterator newIterator(int beginRow)
      Get a new iterator starting from the `beginRow`-th row. `beginRow` is 0-indexed.