public abstract class PerColumnSecondaryIndex extends SecondaryIndex
baseCfs, columnDefs, CUSTOM_INDEX_OPTION_NAME, keyComparator, logger
Constructor and Description |
---|
PerColumnSecondaryIndex() |
Modifier and Type | Method and Description |
---|---|
abstract void |
delete(java.nio.ByteBuffer rowKey,
Cell col,
OpOrder.Group opGroup)
Delete a column from the index.
|
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
|
abstract void |
insert(java.nio.ByteBuffer rowKey,
Cell col,
OpOrder.Group opGroup)
insert a column to the index
|
abstract void |
update(java.nio.ByteBuffer rowKey,
Cell oldCol,
Cell col,
OpOrder.Group opGroup)
update a column from the index
|
boolean |
validate(Cell cell) |
buildIndexAsync, buildIndexBlocking, createInstance, createSecondaryIndexSearcher, estimateResultRows, forceBlockingFlush, getBaseCfs, getColumnDefs, getIndexCfs, getIndexComparator, getIndexKeyFor, getIndexName, indexes, init, invalidate, isIndexBuilt, reload, removeIndex, setIndexBuilt, setIndexRemoved, truncateBlocking, validateOptions
public abstract void delete(java.nio.ByteBuffer rowKey, Cell col, OpOrder.Group opGroup)
rowKey
- the underlying row key which is indexedcol
- all the column infopublic abstract void insert(java.nio.ByteBuffer rowKey, Cell col, OpOrder.Group opGroup)
rowKey
- the underlying row key which is indexedcol
- all the column infopublic abstract void update(java.nio.ByteBuffer rowKey, Cell oldCol, Cell col, OpOrder.Group opGroup)
rowKey
- the underlying row key which is indexedoldCol
- the previous column infocol
- all the column infopublic java.lang.String getNameForSystemKeyspace(java.nio.ByteBuffer column)
SecondaryIndex
getNameForSystemKeyspace
in class SecondaryIndex
column
- the name of the columnpublic boolean validate(Cell cell)
validate
in class SecondaryIndex
Copyright © 2014 The Apache Software Foundation