Interface PerColumnIndexWriter

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void abort​(java.lang.Throwable cause)
      Aborts accumulating data.
      void addRow​(PrimaryKey key, Row row, long sstableRowId)
      Adds a row to this index.
      void complete​(com.google.common.base.Stopwatch stopwatch)
      Builds on-disk index data structures from accumulated data, moves them all to the filesystem, and fsync created files.
    • Method Detail

      • addRow

        void addRow​(PrimaryKey key,
                    Row row,
                    long sstableRowId)
             throws java.io.IOException
        Adds a row to this index.

        Note: Callers are responsible for ensuring that rows are added in PrimaryKey order.

        Throws:
        java.io.IOException
      • complete

        void complete​(com.google.common.base.Stopwatch stopwatch)
               throws java.io.IOException
        Builds on-disk index data structures from accumulated data, moves them all to the filesystem, and fsync created files.
        Throws:
        java.io.IOException
      • abort

        void abort​(java.lang.Throwable cause)
        Aborts accumulating data. Allows to clean up resources on error.

        Note: Implementations should be idempotent, i.e. safe to call multiple times without producing undesirable side-effects.