public class CompositesIndexOnPartitionKey extends CompositesIndex
CompositesIndex.IndexedEntrycolumnDef, indexCfsbaseCfs, 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, validateOptionsdelete, deleteForCleanup, estimateResultRows, forceBlockingFlush, getIndexCfs, getIndexComparator, getIndexedValue, getIndexKeyComparator, getIndexName, indexedColumn, init, insert, insert, invalidate, makeIndexBound, makeIndexClustering, makeIndexClustering, reload, removeIndex, toString, truncateBlocking, update, validate, validate, validategetNameForSystemKeyspace, indexRow, maybeDeletebaseKeyspace, baseTable, buildIndexAsync, buildIndexBlocking, createInstance, getBaseCfs, getColumnDefs, getIndexKeyFor, isIndexBuilt, newIndexMetadata, setIndexBuilt, setIndexRemoved, supportsOperatorprotected 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 CompositesIndex.IndexedEntry decodeEntry(DecoratedKey indexedValue, Row indexEntry)
decodeEntry in class CompositesIndexprotected boolean indexPrimaryKeyColumn()
indexPrimaryKeyColumn in class PerColumnSecondaryIndexpublic boolean indexes(ColumnDefinition c)
SecondaryIndexindexes in class AbstractSimplePerColumnSecondaryIndexpublic boolean isStale(Row data, java.nio.ByteBuffer indexValue, int nowInSec)
isStale in class CompositesIndexpublic void maybeIndex(java.nio.ByteBuffer partitionKey,
Clustering clustering,
long timestamp,
int ttl,
OpOrder.Group opGroup,
int nowInSec)
PerColumnSecondaryIndexmaybeIndex in class PerColumnSecondaryIndexpublic void delete(java.nio.ByteBuffer rowKey,
Clustering clustering,
Cell cell,
OpOrder.Group opGroup,
int nowInSec)
PerColumnSecondaryIndexdelete in class AbstractSimplePerColumnSecondaryIndexrowKey - the underlying row key which is indexedCopyright © 2015 The Apache Software Foundation