public class CompositesIndex extends AbstractSimplePerColumnSecondaryIndex
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PREFIX_SIZE_OPTION |
baseCfs, columnDefs, CUSTOM_INDEX_OPTION_NAME, logger| Constructor and Description |
|---|
CompositesIndex() |
| Modifier and Type | Method and Description |
|---|---|
SecondaryIndexSearcher |
createSecondaryIndexSearcher(java.util.Set<java.nio.ByteBuffer> columns)
Called at query time
Creates a implementation specific searcher instance for this index type
|
protected AbstractType |
getExpressionComparator() |
boolean |
indexes(java.nio.ByteBuffer name)
Returns true if the provided column name is indexed by this secondary index.
|
void |
init(ColumnDefinition columnDef) |
protected java.nio.ByteBuffer |
makeIndexColumnName(java.nio.ByteBuffer rowKey,
IColumn column) |
void |
validateOptions()
Validates the index_options passed in the ColumnDef
|
delete, expressionString, forceBlockingFlush, getIndexCfs, getIndexName, getLiveSize, init, insert, invalidate, reload, removeIndex, truncate, updategetNameForSystemTable, validatebuildIndexAsync, buildIndexBlocking, createInstance, getBaseCfs, getColumnDefs, getIndexComparator, getIndexKeyFor, isIndexBuilt, setIndexBuilt, setIndexRemovedpublic static final java.lang.String PREFIX_SIZE_OPTION
public void init(ColumnDefinition columnDef)
init in class AbstractSimplePerColumnSecondaryIndexprotected java.nio.ByteBuffer makeIndexColumnName(java.nio.ByteBuffer rowKey,
IColumn column)
makeIndexColumnName in class AbstractSimplePerColumnSecondaryIndexprotected AbstractType getExpressionComparator()
getExpressionComparator in class AbstractSimplePerColumnSecondaryIndexpublic boolean indexes(java.nio.ByteBuffer name)
SecondaryIndexindexes in class SecondaryIndexpublic SecondaryIndexSearcher createSecondaryIndexSearcher(java.util.Set<java.nio.ByteBuffer> columns)
SecondaryIndexcreateSecondaryIndexSearcher in class SecondaryIndexcolumns - the list of columns which belong to this index typepublic void validateOptions()
throws ConfigurationException
SecondaryIndexvalidateOptions in class SecondaryIndexConfigurationExceptionCopyright © 2014 The Apache Software Foundation