public abstract class CompositesIndex extends AbstractSimplePerColumnSecondaryIndex
Modifier and Type | Class and Description |
---|---|
static class |
CompositesIndex.IndexedEntry |
columnDef, indexCfs
baseCfs, 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, validate
getNameForSystemKeyspace, validate
buildIndexAsync, buildIndexBlocking, createInstance, getBaseCfs, getColumnDefs, getIndexKeyFor, indexes, indexes, isIndexBuilt, isQueryable, setIndexBuilt, setIndexRemoved, supportsOperator, toString
protected 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 AbstractSimplePerColumnSecondaryIndex
protected 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 AbstractSimplePerColumnSecondaryIndex
public SecondaryIndexSearcher createSecondaryIndexSearcher(java.util.Set<java.nio.ByteBuffer> columns)
SecondaryIndex
createSecondaryIndexSearcher
in class SecondaryIndex
columns
- the list of columns which belong to this index typepublic void validateOptions() throws ConfigurationException
SecondaryIndex
validateOptions
in class SecondaryIndex
ConfigurationException
Copyright © 2020 The Apache Software Foundation