public class CollectionKeyIndex extends CollectionKeyIndexBase
Index.Indexer, Index.SearcherbaseCfs, functions, indexCfs, indexedColumn, metadata, TARGET_REGEX| Constructor and Description |
|---|
CollectionKeyIndex(ColumnFamilyStore baseCfs,
IndexMetadata indexDef) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
getIndexedValue(java.nio.ByteBuffer partitionKey,
Clustering clustering,
CellPath path,
java.nio.ByteBuffer cellValue)
Extract the value to be inserted into the index from the components of the base data
|
boolean |
isStale(Row data,
java.nio.ByteBuffer indexValue,
int nowInSec)
Check whether a value retrieved from an index is still valid by comparing it to current row from the base table.
|
boolean |
supportsOperator(ColumnDefinition indexedColumn,
Operator operator)
Returns true if an index of this type can support search predicates of the form [column] OPERATOR [value]
|
buildIndexClusteringPrefix, decodeEntrycustomExpressionValueType, deleteStaleEntry, dependsOn, getBackingTable, getBlockingFlushTask, getEstimatedResultRows, getIndexCfs, getIndexComparator, getIndexedColumn, getIndexMetadata, getInitializationTask, getInvalidateTask, getMetadataReloadTask, getPostIndexQueryFilter, getTruncateTask, indexCfsMetadata, indexerFor, newIndex, parseTarget, postProcessorFor, register, searcherFor, shouldBuildBlocking, supportsExpression, validatepublic CollectionKeyIndex(ColumnFamilyStore baseCfs, IndexMetadata indexDef)
public java.nio.ByteBuffer getIndexedValue(java.nio.ByteBuffer partitionKey,
Clustering clustering,
CellPath path,
java.nio.ByteBuffer cellValue)
CassandraIndexgetIndexedValue in class CassandraIndexpartitionKey - from the primary dataclustering - from the primary datapath - from the primary datacellValue - from the primary datapublic boolean isStale(Row data, java.nio.ByteBuffer indexValue, int nowInSec)
CassandraIndexisStale in class CassandraIndexdata - the current row from the primary data tableindexValue - the value we retrieved from the indexpublic boolean supportsOperator(ColumnDefinition indexedColumn, Operator operator)
CassandraIndexsupportsOperator in class CassandraIndexCopyright © 2016 The Apache Software Foundation