public abstract class PerRowSecondaryIndex extends SecondaryIndex
baseCfs, columnDefs, CUSTOM_INDEX_OPTION_NAME, INDEX_KEYS_OPTION_NAME, INDEX_VALUES_OPTION_NAME, keyComparator, logger
Constructor and Description |
---|
PerRowSecondaryIndex() |
Modifier and Type | Method and Description |
---|---|
abstract void |
delete(DecoratedKey key,
OpOrder.Group opGroup)
cleans up deleted columns from cassandra cleanup compaction
|
java.lang.String |
getNameForSystemKeyspace(java.nio.ByteBuffer columnName)
Return the unique name for this index and column
to be stored in the SystemKeyspace that tracks if each column is built
|
abstract void |
index(java.nio.ByteBuffer rowKey,
ColumnFamily cf)
Index the given row.
|
boolean |
validate(java.nio.ByteBuffer rowKey,
Cell cell) |
void |
validate(java.nio.ByteBuffer key,
ColumnFamily cf) |
boolean |
validate(Cell cell) |
buildIndexAsync, buildIndexBlocking, createInstance, createSecondaryIndexSearcher, estimateResultRows, forceBlockingFlush, getBaseCfs, getColumnDefs, getIndexCfs, getIndexComparator, getIndexKeyFor, getIndexName, indexes, indexes, init, invalidate, isIndexBuilt, reload, removeIndex, setIndexBuilt, setIndexRemoved, supportsOperator, toString, truncateBlocking, validateOptions
public abstract void index(java.nio.ByteBuffer rowKey, ColumnFamily cf)
rowKey
- the row keycf
- the cf data to be indexedpublic abstract void delete(DecoratedKey key, OpOrder.Group opGroup)
key
- public java.lang.String getNameForSystemKeyspace(java.nio.ByteBuffer columnName)
SecondaryIndex
getNameForSystemKeyspace
in class SecondaryIndex
columnName
- the name of the columnpublic boolean validate(java.nio.ByteBuffer rowKey, Cell cell)
validate
in class SecondaryIndex
public boolean validate(Cell cell)
public void validate(java.nio.ByteBuffer key, ColumnFamily cf) throws InvalidRequestException
InvalidRequestException
Copyright © 2016 The Apache Software Foundation