public abstract class CompositesIndex extends AbstractSimplePerColumnSecondaryIndex
| Modifier and Type | Class and Description |
|---|---|
static class |
CompositesIndex.IndexedEntry |
columnDef, indexCfsbaseCfs, columnDefs, CUSTOM_INDEX_OPTION_NAME, INDEX_ENTRIES_OPTION_NAME, INDEX_KEYS_OPTION_NAME, INDEX_VALUES_OPTION_NAME, keyComparator, logger| Constructor and Description |
|---|
CompositesIndex() |
| Modifier and Type | Method and Description |
|---|---|
static CompositesIndex |
create(ColumnDefinition cfDef) |
SecondaryIndexSearcher |
createSecondaryIndexSearcher(java.util.Set<java.nio.ByteBuffer> columns)
Called at query time
Creates a implementation specific searcher instance for this index type
|
abstract CompositesIndex.IndexedEntry |
decodeEntry(DecoratedKey indexedValue,
Cell indexEntry) |
void |
delete(CompositesIndex.IndexedEntry entry,
OpOrder.Group opGroup) |
protected AbstractType<?> |
getExpressionComparator() |
protected CellNameType |
getIndexComparator() |
static CellNameType |
getIndexComparator(CFMetaData baseMetadata,
ColumnDefinition cfDef) |
abstract boolean |
isStale(CompositesIndex.IndexedEntry entry,
ColumnFamily data,
long now) |
protected CellName |
makeIndexColumnName(java.nio.ByteBuffer rowKey,
Cell cell) |
protected abstract Composite |
makeIndexColumnPrefix(java.nio.ByteBuffer rowKey,
Composite columnName) |
void |
validateOptions()
Validates the index_options passed in the ColumnDef
|
delete, deleteForCleanup, estimateResultRows, expressionString, forceBlockingFlush, getIndexCfs, getIndexedValue, getIndexKeyComparator, getIndexName, init, insert, invalidate, reload, removeIndex, truncateBlocking, update, validategetNameForSystemKeyspace, validatebuildIndexAsync, buildIndexBlocking, createInstance, getBaseCfs, getColumnDefs, getIndexKeyFor, indexes, indexes, isIndexBuilt, isQueryable, setIndexBuilt, setIndexRemoved, supportsOperator, toStringprotected CellNameType getIndexComparator()
public static CompositesIndex create(ColumnDefinition cfDef)
public static CellNameType getIndexComparator(CFMetaData baseMetadata, ColumnDefinition cfDef)
protected CellName makeIndexColumnName(java.nio.ByteBuffer rowKey, Cell cell)
makeIndexColumnName in class AbstractSimplePerColumnSecondaryIndexprotected abstract Composite makeIndexColumnPrefix(java.nio.ByteBuffer rowKey, Composite columnName)
public abstract CompositesIndex.IndexedEntry decodeEntry(DecoratedKey indexedValue, Cell indexEntry)
public abstract boolean isStale(CompositesIndex.IndexedEntry entry, ColumnFamily data, long now)
public void delete(CompositesIndex.IndexedEntry entry, OpOrder.Group opGroup)
protected AbstractType<?> getExpressionComparator()
getExpressionComparator in class AbstractSimplePerColumnSecondaryIndexpublic 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 © 2018 The Apache Software Foundation