public class CompositesIndexOnClusteringKey extends CompositesIndex
CompositesIndex.IndexedEntrycolumnDef, indexCfsbaseCfs, 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, validateOptionsdeleteForCleanup, estimateResultRows, expressionString, forceBlockingFlush, getIndexCfs, getIndexKeyComparator, getIndexName, init, insert, invalidate, reload, removeIndex, truncateBlocking, update, validategetNameForSystemKeyspace, validatebuildIndexAsync, buildIndexBlocking, createInstance, getBaseCfs, getColumnDefs, getIndexKeyFor, indexes, isIndexBuilt, isQueryable, setIndexBuilt, setIndexRemoved, supportsOperator, toStringpublic static CellNameType buildIndexComparator(CFMetaData baseMetadata, ColumnDefinition columnDef)
protected java.nio.ByteBuffer getIndexedValue(java.nio.ByteBuffer rowKey,
Cell cell)
getIndexedValue in class AbstractSimplePerColumnSecondaryIndexprotected Composite makeIndexColumnPrefix(java.nio.ByteBuffer rowKey, Composite columnName)
makeIndexColumnPrefix in class CompositesIndexpublic CompositesIndex.IndexedEntry decodeEntry(DecoratedKey indexedValue, Cell indexEntry)
decodeEntry in class CompositesIndexpublic boolean indexes(CellName name)
SecondaryIndexindexes in class SecondaryIndexpublic boolean isStale(CompositesIndex.IndexedEntry entry, ColumnFamily data, long now)
isStale in class CompositesIndexpublic void delete(java.nio.ByteBuffer rowKey,
Cell cell,
OpOrder.Group opGroup)
PerColumnSecondaryIndexdelete in class AbstractSimplePerColumnSecondaryIndexrowKey - the underlying row key which is indexedcell - all the column infoCopyright © 2018 The Apache Software Foundation