public class CompositesIndexOnClusteringKey extends CompositesIndex
CompositesIndex.IndexedEntry
columnDef, indexCfs
baseCfs, columnDefs, CUSTOM_INDEX_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) |
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
delete, estimateResultRows, expressionString, forceBlockingFlush, getIndexCfs, getIndexKeyComparator, getIndexKeyFor, getIndexName, init, insert, invalidate, reload, removeIndex, truncateBlocking, update
getNameForSystemKeyspace, validate
buildIndexAsync, buildIndexBlocking, createInstance, getBaseCfs, getColumnDefs, isIndexBuilt, setIndexBuilt, setIndexRemoved
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
Copyright © 2014 The Apache Software Foundation