Interface ResettableRowBuffer
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
ResettableExternalBuffer
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().
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRow iterator that can be reset. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(org.apache.flink.table.data.RowData row) Appends the specified row to the end of this buffer.voidcomplete()Finally, complete add.Get a new iterator starting from first row.newIterator(int beginRow) Get a new iterator starting from the `beginRow`-th row.voidreset()Re-initialize the buffer state.
-
Method Details
-
reset
void reset()Re-initialize the buffer state. -
add
Appends the specified row to the end of this buffer.- Throws:
IOException
-
complete
void complete()Finally, complete add. -
newIterator
ResettableRowBuffer.ResettableIterator newIterator()Get a new iterator starting from first row. -
newIterator
Get a new iterator starting from the `beginRow`-th row. `beginRow` is 0-indexed.
-