public class CompositesIndexOnCollectionValue extends CompositesIndex
CompositesIndex.IndexedEntry
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 |
---|
CompositesIndexOnCollectionValue() |
Modifier and Type | Method and Description |
---|---|
static void |
addClusteringColumns(CFMetaData.Builder indexMetadata,
CFMetaData baseMetadata,
ColumnDefinition columnDef) |
protected CBuilder |
buildIndexClusteringPrefix(java.nio.ByteBuffer rowKey,
ClusteringPrefix prefix,
CellPath path) |
CompositesIndex.IndexedEntry |
decodeEntry(DecoratedKey indexedValue,
Row indexEntry) |
protected java.nio.ByteBuffer |
getIndexedValue(java.nio.ByteBuffer rowKey,
Clustering clustering,
java.nio.ByteBuffer cellValue,
CellPath path) |
protected AbstractType<?> |
getIndexKeyComparator() |
boolean |
isStale(Row data,
java.nio.ByteBuffer indexValue,
int nowInSec) |
boolean |
supportsOperator(Operator operator)
Returns true if the index supports lookups for the given operator, false otherwise.
|
addGenericClusteringColumns, addIndexClusteringColumns, create, createSecondaryIndexSearcher, delete, validateOptions
delete, delete, deleteForCleanup, estimateResultRows, forceBlockingFlush, getIndexCfs, getIndexComparator, getIndexedValue, getIndexName, indexedColumn, indexes, init, insert, insert, invalidate, makeIndexBound, makeIndexClustering, makeIndexClustering, reload, removeIndex, toString, truncateBlocking, update, validate, validate, validate
getNameForSystemKeyspace, indexPrimaryKeyColumn, indexRow, maybeDelete, maybeIndex
baseKeyspace, baseTable, buildIndexAsync, buildIndexBlocking, createInstance, getBaseCfs, getColumnDefs, getIndexKeyFor, isIndexBuilt, newIndexMetadata, setIndexBuilt, setIndexRemoved
public static void addClusteringColumns(CFMetaData.Builder indexMetadata, CFMetaData baseMetadata, ColumnDefinition columnDef)
protected AbstractType<?> getIndexKeyComparator()
getIndexKeyComparator
in class AbstractSimplePerColumnSecondaryIndex
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 CompositesIndex.IndexedEntry decodeEntry(DecoratedKey indexedValue, Row indexEntry)
decodeEntry
in class CompositesIndex
public boolean supportsOperator(Operator operator)
SecondaryIndex
supportsOperator
in class SecondaryIndex
public boolean isStale(Row data, java.nio.ByteBuffer indexValue, int nowInSec)
isStale
in class CompositesIndex
Copyright © 2015 The Apache Software Foundation