public abstract class PerColumnSecondaryIndex extends SecondaryIndex
baseCfs, columnDefs, CUSTOM_INDEX_OPTION_NAME, INDEX_ENTRIES_OPTION_NAME, INDEX_KEYS_OPTION_NAME, INDEX_VALUES_OPTION_NAME, keyComparator, logger
Constructor and Description |
---|
PerColumnSecondaryIndex() |
Modifier and Type | Method and Description |
---|---|
abstract void |
delete(java.nio.ByteBuffer rowKey,
Clustering clustering,
Cell cell,
OpOrder.Group opGroup,
int nowInSec)
Called when a column has been tombstoned or replaced.
|
abstract void |
deleteForCleanup(java.nio.ByteBuffer rowKey,
Clustering clustering,
Cell cell,
OpOrder.Group opGroup,
int nowInSec)
Called when a column has been removed due to a cleanup operation.
|
java.lang.String |
getNameForSystemKeyspace(java.nio.ByteBuffer column)
Return the unique name for this index and column
to be stored in the SystemKeyspace that tracks if each column is built
|
protected boolean |
indexPrimaryKeyColumn() |
void |
indexRow(DecoratedKey key,
Row row,
OpOrder.Group opGroup,
int nowInSec) |
abstract void |
insert(java.nio.ByteBuffer rowKey,
Clustering clustering,
Cell cell,
OpOrder.Group opGroup)
insert a column to the index
|
void |
maybeDelete(java.nio.ByteBuffer partitionKey,
Clustering clustering,
DeletionTime deletion,
OpOrder.Group opGroup)
For indexes on the primary key, delete the given PK.
|
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.
|
abstract void |
update(java.nio.ByteBuffer rowKey,
Clustering clustering,
Cell oldCell,
Cell cell,
OpOrder.Group opGroup,
int nowInSec)
update a column from the index
|
baseKeyspace, baseTable, buildIndexAsync, buildIndexBlocking, createInstance, createSecondaryIndexSearcher, estimateResultRows, forceBlockingFlush, getBaseCfs, getColumnDefs, getIndexCfs, getIndexKeyFor, getIndexName, indexes, init, invalidate, isIndexBuilt, newIndexMetadata, reload, removeIndex, setIndexBuilt, setIndexRemoved, supportsOperator, toString, truncateBlocking, validate, validate, validate, validateOptions
public abstract void delete(java.nio.ByteBuffer rowKey, Clustering clustering, Cell cell, OpOrder.Group opGroup, int nowInSec)
rowKey
- the underlying row key which is indexedcol
- all the column infopublic abstract void deleteForCleanup(java.nio.ByteBuffer rowKey, Clustering clustering, Cell cell, OpOrder.Group opGroup, int nowInSec)
public void maybeIndex(java.nio.ByteBuffer partitionKey, Clustering clustering, long timestamp, int ttl, OpOrder.Group opGroup, int nowInSec)
public void maybeDelete(java.nio.ByteBuffer partitionKey, Clustering clustering, DeletionTime deletion, OpOrder.Group opGroup)
public abstract void insert(java.nio.ByteBuffer rowKey, Clustering clustering, Cell cell, OpOrder.Group opGroup)
rowKey
- the underlying row key which is indexedcol
- all the column infopublic abstract void update(java.nio.ByteBuffer rowKey, Clustering clustering, Cell oldCell, Cell cell, OpOrder.Group opGroup, int nowInSec)
rowKey
- the underlying row key which is indexedoldCol
- the previous column infocol
- all the column infoprotected boolean indexPrimaryKeyColumn()
public void indexRow(DecoratedKey key, Row row, OpOrder.Group opGroup, int nowInSec)
public java.lang.String getNameForSystemKeyspace(java.nio.ByteBuffer column)
SecondaryIndex
getNameForSystemKeyspace
in class SecondaryIndex
column
- the name of the columnCopyright © 2015 The Apache Software Foundation