public abstract class PerRowSecondaryIndex extends SecondaryIndex
baseCfs, columnDefs, CUSTOM_INDEX_OPTION_NAME, keyComparator, logger
Constructor and Description |
---|
PerRowSecondaryIndex() |
Modifier and Type | Method and Description |
---|---|
abstract void |
delete(DecoratedKey key)
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)
Index the given row
|
abstract void |
index(java.nio.ByteBuffer rowKey,
ColumnFamily cf)
Index the given row for new index creation.
|
boolean |
validate(Column column) |
buildIndexAsync, buildIndexBlocking, createInstance, createSecondaryIndexSearcher, forceBlockingFlush, getBaseCfs, getColumnDefs, getIndexCfs, getIndexComparator, getIndexKeyFor, getIndexName, getLiveSize, indexes, init, invalidate, isIndexBuilt, reload, removeIndex, setIndexBuilt, setIndexRemoved, truncateBlocking, validateOptions
public abstract void index(java.nio.ByteBuffer rowKey, ColumnFamily cf)
rowKey
- the row keycf
- the current rows datapublic abstract void index(java.nio.ByteBuffer rowKey)
rowKey
- the row keypublic abstract void delete(DecoratedKey key)
key
- public java.lang.String getNameForSystemKeyspace(java.nio.ByteBuffer columnName)
SecondaryIndex
getNameForSystemKeyspace
in class SecondaryIndex
columnName
- the name of the columnpublic boolean validate(Column column)
validate
in class SecondaryIndex
Copyright © 2013 The Apache Software Foundation