public class KeysIndex extends AbstractSimplePerColumnSecondaryIndex
columnDef, indexCfsbaseCfs, columnDefs, CUSTOM_INDEX_OPTION_NAME, INDEX_ENTRIES_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, getIndexName, init, insert, invalidate, reload, removeIndex, truncateBlocking, update, validategetNameForSystemKeyspace, validatebuildIndexAsync, buildIndexBlocking, createInstance, getBaseCfs, getColumnDefs, getIndexComparator, getIndexKeyFor, indexes, isIndexBuilt, isQueryable, setIndexBuilt, setIndexRemoved, supportsOperator, toStringprotected java.nio.ByteBuffer getIndexedValue(java.nio.ByteBuffer rowKey,
Cell cell)
getIndexedValue in class AbstractSimplePerColumnSecondaryIndexprotected CellName makeIndexColumnName(java.nio.ByteBuffer rowKey, Cell cell)
makeIndexColumnName in class AbstractSimplePerColumnSecondaryIndexpublic SecondaryIndexSearcher createSecondaryIndexSearcher(java.util.Set<java.nio.ByteBuffer> columns)
SecondaryIndexcreateSecondaryIndexSearcher in class SecondaryIndexcolumns - 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
SecondaryIndexvalidateOptions in class SecondaryIndexConfigurationExceptionpublic boolean indexes(CellName name)
SecondaryIndexindexes in class SecondaryIndexprotected AbstractType getExpressionComparator()
getExpressionComparator in class AbstractSimplePerColumnSecondaryIndexCopyright © 2018 The Apache Software Foundation