Class ColumnIndex


  • public class ColumnIndex
    extends java.lang.Object
    • Method Detail

      • init

        public java.lang.Iterable<SSTableReader> init​(java.util.Set<SSTableReader> sstables)
        Initialize this column index with specific set of SSTables.
        Parameters:
        sstables - The sstables to be used by index initially.
        Returns:
        A collection of sstables which don't have this specific index attached to them.
      • switchMemtable

        public void switchMemtable()
      • switchMemtable

        public void switchMemtable​(Memtable parent)
      • discardMemtable

        public void discardMemtable​(Memtable parent)
      • getPendingMemtables

        public java.util.Collection<IndexMemtable> getPendingMemtables()
      • update

        public void update​(java.util.Collection<SSTableReader> oldSSTables,
                           java.util.Collection<SSTableReader> newSSTables)
      • getComponent

        public Component getComponent()
      • getColumnName

        public java.lang.String getColumnName()
      • getIndexName

        public java.lang.String getIndexName()
      • getView

        public View getView()
      • hasSSTable

        public boolean hasSSTable​(SSTableReader sstable)
      • dropData

        public void dropData​(java.util.Collection<SSTableReader> sstablesToRebuild)
      • dropData

        public void dropData​(long truncateUntil)
      • isIndexed

        public boolean isIndexed()
      • isLiteral

        public boolean isLiteral()
      • supports

        public boolean supports​(Operator op)
      • getValueOf

        public static java.nio.ByteBuffer getValueOf​(ColumnMetadata column,
                                                     Row row,
                                                     long nowInSecs)