public class CompositesIndexOnClusteringKey extends CompositesIndex
CompositesIndex.IndexedEntry
columnDef, indexCfs
baseCfs, columnDefs, CUSTOM_INDEX_OPTION_NAME, INDEX_ENTRIES_OPTION_NAME, INDEX_KEYS_OPTION_NAME, INDEX_VALUES_OPTION_NAME, keyComparator, logger
Constructor and Description |
---|
CompositesIndexOnClusteringKey() |
Modifier and Type | Method and Description |
---|---|
static CellNameType |
buildIndexComparator(CFMetaData baseMetadata,
ColumnDefinition columnDef) |
CompositesIndex.IndexedEntry |
decodeEntry(DecoratedKey indexedValue,
Cell indexEntry) |
void |
delete(java.nio.ByteBuffer rowKey,
Cell cell,
OpOrder.Group opGroup)
Called when a column has been tombstoned or replaced.
|
protected java.nio.ByteBuffer |
getIndexedValue(java.nio.ByteBuffer rowKey,
Cell cell) |
boolean |
indexes(CellName name)
Returns true if the provided cell name is indexed by this secondary index.
|
boolean |
isStale(CompositesIndex.IndexedEntry entry,
ColumnFamily data,
long now) |
protected Composite |
makeIndexColumnPrefix(java.nio.ByteBuffer rowKey,
Composite columnName) |
create, createSecondaryIndexSearcher, delete, getExpressionComparator, getIndexComparator, getIndexComparator, makeIndexColumnName, validateOptions
deleteForCleanup, estimateResultRows, expressionString, forceBlockingFlush, getIndexCfs, getIndexKeyComparator, getIndexName, init, insert, invalidate, reload, removeIndex, truncateBlocking, update, validate
getNameForSystemKeyspace, validate
buildIndexAsync, buildIndexBlocking, createInstance, getBaseCfs, getColumnDefs, getIndexKeyFor, indexes, isIndexBuilt, isQueryable, setIndexBuilt, setIndexRemoved, supportsOperator, toString
public static CellNameType buildIndexComparator(CFMetaData baseMetadata, ColumnDefinition columnDef)
protected java.nio.ByteBuffer getIndexedValue(java.nio.ByteBuffer rowKey, Cell cell)
getIndexedValue
in class AbstractSimplePerColumnSecondaryIndex
protected Composite makeIndexColumnPrefix(java.nio.ByteBuffer rowKey, Composite columnName)
makeIndexColumnPrefix
in class CompositesIndex
public CompositesIndex.IndexedEntry decodeEntry(DecoratedKey indexedValue, Cell indexEntry)
decodeEntry
in class CompositesIndex
public boolean indexes(CellName name)
SecondaryIndex
indexes
in class SecondaryIndex
public boolean isStale(CompositesIndex.IndexedEntry entry, ColumnFamily data, long now)
isStale
in class CompositesIndex
public void delete(java.nio.ByteBuffer rowKey, Cell cell, OpOrder.Group opGroup)
PerColumnSecondaryIndex
delete
in class AbstractSimplePerColumnSecondaryIndex
rowKey
- the underlying row key which is indexedcell
- all the column infoCopyright © 2016 The Apache Software Foundation