public abstract class AbstractSimplePerColumnSecondaryIndex extends PerColumnSecondaryIndex
| Modifier and Type | Field and Description |
|---|---|
protected ColumnDefinition |
columnDef |
protected ColumnFamilyStore |
indexCfs |
baseCfs, columnDefs, CUSTOM_INDEX_OPTION_NAME, keyComparator, logger| Constructor and Description |
|---|
AbstractSimplePerColumnSecondaryIndex() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(java.nio.ByteBuffer rowKey,
Column column)
Called when a column has been tombstoned or replaced.
|
void |
deleteForCleanup(java.nio.ByteBuffer rowKey,
Column column)
Called when a column has been removed due to a cleanup operation.
|
java.lang.String |
expressionString(IndexExpression expr) |
void |
forceBlockingFlush()
Forces this indexes in memory data to disk
|
protected abstract AbstractType |
getExpressionComparator() |
ColumnFamilyStore |
getIndexCfs()
Allow access to the underlying column family store if there is one
|
protected abstract java.nio.ByteBuffer |
getIndexedValue(java.nio.ByteBuffer rowKey,
Column column) |
java.lang.String |
getIndexName() |
long |
getLiveSize()
Get current amount of memory this index is consuming (in bytes)
|
void |
init()
Perform any initialization work
|
void |
insert(java.nio.ByteBuffer rowKey,
Column column)
insert a column to the index
|
void |
invalidate()
Remove the index and unregisters this index's mbean if one exists
|
protected abstract java.nio.ByteBuffer |
makeIndexColumnName(java.nio.ByteBuffer rowKey,
Column column) |
void |
reload()
Reload an existing index following a change to its configuration,
or that of the indexed column(s).
|
void |
removeIndex(java.nio.ByteBuffer columnName)
Delete all files and references to this index
|
void |
truncateBlocking(long truncatedAt)
Truncate all the data from the current index
|
void |
update(java.nio.ByteBuffer rowKey,
Column col)
update a column from the index
|
getNameForSystemKeyspace, validatebuildIndexAsync, buildIndexBlocking, createInstance, createSecondaryIndexSearcher, getBaseCfs, getColumnDefs, getIndexComparator, getIndexKeyFor, indexes, isIndexBuilt, setIndexBuilt, setIndexRemoved, toString, validateOptionsprotected ColumnFamilyStore indexCfs
protected ColumnDefinition columnDef
public AbstractSimplePerColumnSecondaryIndex()
public void init()
SecondaryIndexinit in class SecondaryIndexprotected abstract java.nio.ByteBuffer makeIndexColumnName(java.nio.ByteBuffer rowKey,
Column column)
protected abstract java.nio.ByteBuffer getIndexedValue(java.nio.ByteBuffer rowKey,
Column column)
protected abstract AbstractType getExpressionComparator()
public java.lang.String expressionString(IndexExpression expr)
public void delete(java.nio.ByteBuffer rowKey,
Column column)
PerColumnSecondaryIndexdelete in class PerColumnSecondaryIndexrowKey - the underlying row key which is indexedcolumn - all the column infopublic void deleteForCleanup(java.nio.ByteBuffer rowKey,
Column column)
PerColumnSecondaryIndexdeleteForCleanup in class PerColumnSecondaryIndexpublic void insert(java.nio.ByteBuffer rowKey,
Column column)
PerColumnSecondaryIndexinsert in class PerColumnSecondaryIndexrowKey - the underlying row key which is indexedcolumn - all the column infopublic void update(java.nio.ByteBuffer rowKey,
Column col)
PerColumnSecondaryIndexupdate in class PerColumnSecondaryIndexrowKey - the underlying row key which is indexedcol - all the column infopublic void removeIndex(java.nio.ByteBuffer columnName)
SecondaryIndexremoveIndex in class SecondaryIndexcolumnName - the indexed column to removepublic void forceBlockingFlush()
SecondaryIndexforceBlockingFlush in class SecondaryIndexpublic void invalidate()
SecondaryIndexinvalidate in class SecondaryIndexpublic void truncateBlocking(long truncatedAt)
SecondaryIndextruncateBlocking in class SecondaryIndextruncatedAt - The truncation timestamp, all data before that timestamp should be rejected.public ColumnFamilyStore getIndexCfs()
SecondaryIndexgetIndexCfs in class SecondaryIndexpublic java.lang.String getIndexName()
getIndexName in class SecondaryIndexpublic long getLiveSize()
SecondaryIndexgetLiveSize in class SecondaryIndexpublic void reload()
SecondaryIndexreload in class SecondaryIndexCopyright © 2015 The Apache Software Foundation