public interface SSTableFlushObserver
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
Called before writing any data to the sstable.
|
void |
complete()
Called when all data is written to the file and it's ready to be finished up.
|
void |
nextCell(ColumnData cell)
Called after the cell is written to the sstable.
|
void |
startPartition(DecoratedKey key,
long indexPosition)
Called when a new partition in being written to the sstable,
but before any cells are processed (see
nextCell(ColumnData)). |
void begin()
void startPartition(DecoratedKey key, long indexPosition)
nextCell(ColumnData)).key - The key being appended to SSTable.indexPosition - The position of the key in the SSTable PRIMARY_INDEX file.void nextCell(ColumnData cell)
startPartition(DecoratedKey, long),
and the cell should be assumed to belong to that row.cell - The cell being added to the row.void complete()
Copyright © 2016 The Apache Software Foundation