Interface ResettableRowBuffer
-
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
ResettableExternalBuffer
public interface ResettableRowBuffer extends Closeable
Resettable buffer that addRowData
and returnBinaryRowData
iterator.Instructions: 1.
reset()
2.multiadd(RowData)
3.complete()
4.multinewIterator()
repeat the above steps orCloseable.close()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ResettableRowBuffer.ResettableIterator
Row iterator that can be reset.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(RowData row)
Appends the specified row to the end of this buffer.void
complete()
Finally, complete add.ResettableRowBuffer.ResettableIterator
newIterator()
Get a new iterator starting from first row.ResettableRowBuffer.ResettableIterator
newIterator(int beginRow)
Get a new iterator starting from the `beginRow`-th row.void
reset()
Re-initialize the buffer state.
-
-
-
Method Detail
-
reset
void reset()
Re-initialize the buffer state.
-
add
void add(RowData row) throws IOException
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
ResettableRowBuffer.ResettableIterator newIterator(int beginRow)
Get a new iterator starting from the `beginRow`-th row. `beginRow` is 0-indexed.
-
-