Interface SSTableFlushObserver

    • Method Detail

      • begin

        void begin()
        Called before writing any data to the sstable.
      • startPartition

        void startPartition​(DecoratedKey key,
                            long keyPosition,
                            long keyPositionForSASI)
        Called when a new partition in being written to the sstable, but before any cells are processed (see nextUnfilteredCluster(Unfiltered)).
        Parameters:
        key - the key being appended to SSTable.
        keyPosition - the position of the key in the SSTable data file
        keyPositionForSASI - SSTable format specific key position for storage attached indexes, it can be in data file or in some index file. It is the same position as returned by KeyReader.keyPositionForSecondaryIndex() for the same format, and the same position as expected by SSTableReader.keyAtPositionFromSecondaryIndex(long).
      • nextUnfilteredCluster

        void nextUnfilteredCluster​(Unfiltered unfiltered)
        Called after an unfiltered is written to the sstable. Will be preceded by a call to startPartition(DecoratedKey, long, long), and the unfiltered should be assumed to belong to that partition.
        Parameters:
        unfiltered - the unfiltered being written to the SSTable
      • complete

        void complete()
        Called when all data is written to the file and it's ready to be finished up.
      • abort

        default void abort​(java.lang.Throwable accumulator)
        Clean up resources on error. There should be no side effects if called multiple times.