public class KeysIndex extends AbstractSimplePerColumnSecondaryIndex
columnDef, indexCfs
baseCfs, columnDefs, CUSTOM_INDEX_OPTION_NAME, INDEX_KEYS_OPTION_NAME, INDEX_VALUES_OPTION_NAME, keyComparator, logger
Constructor and Description |
---|
KeysIndex() |
Modifier and Type | Method and Description |
---|---|
SecondaryIndexSearcher |
createSecondaryIndexSearcher(java.util.Set<java.nio.ByteBuffer> columns)
Called at query time
Creates a implementation specific searcher instance for this index type
|
protected AbstractType |
getExpressionComparator() |
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 |
isIndexEntryStale(java.nio.ByteBuffer indexedValue,
ColumnFamily data,
long now) |
protected CellName |
makeIndexColumnName(java.nio.ByteBuffer rowKey,
Cell cell) |
void |
validateOptions()
Validates the index_options passed in the ColumnDef
|
delete, deleteForCleanup, estimateResultRows, expressionString, forceBlockingFlush, getIndexCfs, getIndexKeyComparator, getIndexKeyFor, getIndexName, init, insert, invalidate, reload, removeIndex, truncateBlocking, update, validate
getNameForSystemKeyspace, validate
buildIndexAsync, buildIndexBlocking, createInstance, getBaseCfs, getColumnDefs, getIndexComparator, indexes, isIndexBuilt, setIndexBuilt, setIndexRemoved, supportsOperator, toString
protected java.nio.ByteBuffer getIndexedValue(java.nio.ByteBuffer rowKey, Cell cell)
getIndexedValue
in class AbstractSimplePerColumnSecondaryIndex
protected CellName makeIndexColumnName(java.nio.ByteBuffer rowKey, Cell cell)
makeIndexColumnName
in class AbstractSimplePerColumnSecondaryIndex
public SecondaryIndexSearcher createSecondaryIndexSearcher(java.util.Set<java.nio.ByteBuffer> columns)
SecondaryIndex
createSecondaryIndexSearcher
in class SecondaryIndex
columns
- the list of columns which belong to this index typepublic boolean isIndexEntryStale(java.nio.ByteBuffer indexedValue, ColumnFamily data, long now)
public void validateOptions() throws ConfigurationException
SecondaryIndex
validateOptions
in class SecondaryIndex
ConfigurationException
public boolean indexes(CellName name)
SecondaryIndex
indexes
in class SecondaryIndex
protected AbstractType getExpressionComparator()
getExpressionComparator
in class AbstractSimplePerColumnSecondaryIndex
Copyright © 2016 The Apache Software Foundation