public class KeysIndex extends AbstractSimplePerColumnSecondaryIndex
columnDef, indexCfs
baseCfs, 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, validate
getNameForSystemKeyspace, indexPrimaryKeyColumn, maybeDelete, maybeIndex
baseKeyspace, baseTable, buildIndexAsync, buildIndexBlocking, createInstance, getBaseCfs, getColumnDefs, getIndexKeyFor, isIndexBuilt, newIndexMetadata, setIndexBuilt, setIndexRemoved, supportsOperator
public 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 PerColumnSecondaryIndex
protected java.nio.ByteBuffer getIndexedValue(java.nio.ByteBuffer rowKey, Clustering clustering, java.nio.ByteBuffer cellValue, CellPath path)
getIndexedValue
in class AbstractSimplePerColumnSecondaryIndex
protected CBuilder buildIndexClusteringPrefix(java.nio.ByteBuffer rowKey, ClusteringPrefix prefix, CellPath path)
buildIndexClusteringPrefix
in class AbstractSimplePerColumnSecondaryIndex
public SecondaryIndexSearcher createSecondaryIndexSearcher(java.util.Set<ColumnDefinition> columns)
SecondaryIndex
createSecondaryIndexSearcher
in class SecondaryIndex
columns
- the list of columns which belong to this index typepublic void validateOptions() throws ConfigurationException
SecondaryIndex
validateOptions
in class SecondaryIndex
ConfigurationException
Copyright © 2015 The Apache Software Foundation