public interface ResettableRowBuffer extends Closeable
BaseRow
and return BinaryRow
iterator.
Instructions:
1.reset()
2.multi add(BaseRow)
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(BaseRow 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(BaseRow row) throws IOException
IOException
void complete()
ResettableRowBuffer.ResettableIterator newIterator()
ResettableRowBuffer.ResettableIterator newIterator(int beginRow)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.