public class CompositesIndexOnPartitionKey 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 |
---|
CompositesIndexOnPartitionKey() |
Modifier and Type | Method and Description |
---|---|
protected CBuilder |
buildIndexClusteringPrefix(java.nio.ByteBuffer rowKey,
ClusteringPrefix prefix,
CellPath path) |
CompositesIndex.IndexedEntry |
decodeEntry(DecoratedKey indexedValue,
Row indexEntry) |
void |
delete(java.nio.ByteBuffer rowKey,
Clustering clustering,
Cell cell,
OpOrder.Group opGroup,
int nowInSec)
Called when a column has been tombstoned or replaced.
|
protected java.nio.ByteBuffer |
getIndexedValue(java.nio.ByteBuffer rowKey,
Clustering clustering,
java.nio.ByteBuffer cellValue,
CellPath path) |
boolean |
indexes(ColumnDefinition c)
Returns true if the provided column is indexed by this secondary index.
|
protected boolean |
indexPrimaryKeyColumn() |
boolean |
isStale(Row data,
java.nio.ByteBuffer indexValue,
int nowInSec) |
void |
maybeIndex(java.nio.ByteBuffer partitionKey,
Clustering clustering,
long timestamp,
int ttl,
OpOrder.Group opGroup,
int nowInSec)
For indexes on the primary key, index the given PK.
|
addGenericClusteringColumns, addIndexClusteringColumns, create, createSecondaryIndexSearcher, delete, validateOptions
delete, deleteForCleanup, estimateResultRows, forceBlockingFlush, getIndexCfs, getIndexComparator, getIndexedValue, getIndexKeyComparator, getIndexName, indexedColumn, init, insert, insert, invalidate, makeIndexBound, makeIndexClustering, makeIndexClustering, reload, removeIndex, toString, truncateBlocking, update, validate, validate, validate
getNameForSystemKeyspace, indexRow, maybeDelete
baseKeyspace, baseTable, buildIndexAsync, buildIndexBlocking, createInstance, getBaseCfs, getColumnDefs, getIndexKeyFor, isIndexBuilt, newIndexMetadata, setIndexBuilt, setIndexRemoved, supportsOperator
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
protected boolean indexPrimaryKeyColumn()
indexPrimaryKeyColumn
in class PerColumnSecondaryIndex
public boolean indexes(ColumnDefinition c)
SecondaryIndex
indexes
in class AbstractSimplePerColumnSecondaryIndex
public boolean isStale(Row data, java.nio.ByteBuffer indexValue, int nowInSec)
isStale
in class CompositesIndex
public void maybeIndex(java.nio.ByteBuffer partitionKey, Clustering clustering, long timestamp, int ttl, OpOrder.Group opGroup, int nowInSec)
PerColumnSecondaryIndex
maybeIndex
in class PerColumnSecondaryIndex
public void delete(java.nio.ByteBuffer rowKey, Clustering clustering, Cell cell, OpOrder.Group opGroup, int nowInSec)
PerColumnSecondaryIndex
delete
in class AbstractSimplePerColumnSecondaryIndex
rowKey
- the underlying row key which is indexedCopyright © 2015 The Apache Software Foundation