public interface ResettableRowBuffer extends Closeable
RowData
and return BinaryRowData
iterator.
Instructions: 1.reset()
2.multi add(RowData)
3.complete()
4.multi
newIterator()
repeat the above steps or Closeable.close()
.
Modifier and Type | Interface and Description |
---|---|
static interface |
ResettableRowBuffer.ResettableIterator
Row iterator that can be reset.
|
Modifier and Type | Method and 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.
|
void reset()
void add(RowData row) throws IOException
IOException
void complete()
ResettableRowBuffer.ResettableIterator newIterator()
ResettableRowBuffer.ResettableIterator newIterator(int beginRow)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.