Class ColumnIndex
- java.lang.Object
-
- org.apache.cassandra.index.sasi.conf.ColumnIndex
-
public class ColumnIndex extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ColumnIndex(AbstractType<?> keyValidator, ColumnMetadata column, IndexMetadata metadata)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
discardMemtable(Memtable parent)
void
dropData(long truncateUntil)
void
dropData(java.util.Collection<SSTableReader> sstablesToRebuild)
AbstractAnalyzer
getAnalyzer()
java.lang.String
getColumnName()
Component
getComponent()
IndexMemtable
getCurrentMemtable()
ColumnMetadata
getDefinition()
java.lang.String
getIndexName()
IndexMode
getMode()
java.util.Collection<IndexMemtable>
getPendingMemtables()
AbstractType<?>
getValidator()
static java.nio.ByteBuffer
getValueOf(ColumnMetadata column, Row row, long nowInSecs)
View
getView()
boolean
hasSSTable(SSTableReader sstable)
long
index(DecoratedKey key, Row row)
java.lang.Iterable<SSTableReader>
init(java.util.Set<SSTableReader> sstables)
Initialize this column index with specific set of SSTables.boolean
isIndexed()
boolean
isLiteral()
AbstractType<?>
keyValidator()
RangeIterator<java.lang.Long,Token>
searchMemtable(Expression e)
boolean
supports(Operator op)
void
switchMemtable()
void
switchMemtable(Memtable parent)
void
update(java.util.Collection<SSTableReader> oldSSTables, java.util.Collection<SSTableReader> newSSTables)
-
-
-
Constructor Detail
-
ColumnIndex
public ColumnIndex(AbstractType<?> keyValidator, ColumnMetadata column, IndexMetadata metadata)
-
-
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.
-
keyValidator
public AbstractType<?> keyValidator()
-
index
public long index(DecoratedKey key, Row row)
-
switchMemtable
public void switchMemtable()
-
switchMemtable
public void switchMemtable(Memtable parent)
-
discardMemtable
public void discardMemtable(Memtable parent)
-
getCurrentMemtable
public IndexMemtable getCurrentMemtable()
-
getPendingMemtables
public java.util.Collection<IndexMemtable> getPendingMemtables()
-
searchMemtable
public RangeIterator<java.lang.Long,Token> searchMemtable(Expression e)
-
update
public void update(java.util.Collection<SSTableReader> oldSSTables, java.util.Collection<SSTableReader> newSSTables)
-
getDefinition
public ColumnMetadata getDefinition()
-
getValidator
public AbstractType<?> getValidator()
-
getComponent
public Component getComponent()
-
getMode
public IndexMode getMode()
-
getColumnName
public java.lang.String getColumnName()
-
getIndexName
public java.lang.String getIndexName()
-
getAnalyzer
public AbstractAnalyzer getAnalyzer()
-
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)
-
-