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 |
|---|---|
static void |
addIndexClusteringColumns(CFMetaData.Builder indexMetadata,
CFMetaData baseMetadata,
ColumnDefinition cfDef) |
protected CBuilder |
buildIndexClusteringPrefix(java.nio.ByteBuffer rowKey,
ClusteringPrefix prefix,
CellPath path) |
SecondaryIndexSearcher |
createSecondaryIndexSearcher(java.util.Set<ColumnDefinition> columns)
Called at query time
Creates a implementation specific searcher instance for this index type
|
protected java.nio.ByteBuffer |
getIndexedValue(java.nio.ByteBuffer rowKey,
Clustering clustering,
java.nio.ByteBuffer cellValue,
CellPath path) |
void |
indexRow(DecoratedKey key,
Row row,
OpOrder.Group opGroup,
int nowInSec) |
void |
validateOptions()
Validates the index_options passed in the ColumnDef
|
delete, delete, deleteForCleanup, estimateResultRows, forceBlockingFlush, getIndexCfs, getIndexComparator, getIndexedValue, getIndexKeyComparator, getIndexName, indexedColumn, indexes, init, insert, insert, invalidate, makeIndexBound, makeIndexClustering, makeIndexClustering, reload, removeIndex, toString, truncateBlocking, update, validate, validate, validategetNameForSystemKeyspace, indexPrimaryKeyColumn, maybeDelete, maybeIndexbaseKeyspace, baseTable, buildIndexAsync, buildIndexBlocking, createInstance, getBaseCfs, getColumnDefs, getIndexKeyFor, isIndexBuilt, newIndexMetadata, setIndexBuilt, setIndexRemoved, supportsOperatorpublic static void addIndexClusteringColumns(CFMetaData.Builder indexMetadata, CFMetaData baseMetadata, ColumnDefinition cfDef)
public void indexRow(DecoratedKey key, Row row, OpOrder.Group opGroup, int nowInSec)
indexRow in class PerColumnSecondaryIndexprotected java.nio.ByteBuffer getIndexedValue(java.nio.ByteBuffer rowKey,
Clustering clustering,
java.nio.ByteBuffer cellValue,
CellPath path)
getIndexedValue in class AbstractSimplePerColumnSecondaryIndexprotected CBuilder buildIndexClusteringPrefix(java.nio.ByteBuffer rowKey, ClusteringPrefix prefix, CellPath path)
buildIndexClusteringPrefix in class AbstractSimplePerColumnSecondaryIndexpublic SecondaryIndexSearcher createSecondaryIndexSearcher(java.util.Set<ColumnDefinition> columns)
SecondaryIndexcreateSecondaryIndexSearcher in class SecondaryIndexcolumns - the list of columns which belong to this index typepublic void validateOptions()
throws ConfigurationException
SecondaryIndexvalidateOptions in class SecondaryIndexConfigurationExceptionCopyright © 2015 The Apache Software Foundation