public abstract class CompositesIndex extends AbstractSimplePerColumnSecondaryIndex
Modifier and Type | Class and Description |
---|---|
static class |
CompositesIndex.IndexedEntry |
columnDef, indexCfs
baseCfs, columnDefs, CUSTOM_INDEX_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,
Column indexEntry) |
void |
delete(CompositesIndex.IndexedEntry entry) |
protected CompositeType |
getBaseComparator() |
protected AbstractType |
getExpressionComparator() |
protected CompositeType |
getIndexComparator() |
static CompositeType |
getIndexComparator(CFMetaData baseMetadata,
ColumnDefinition cfDef) |
abstract boolean |
isStale(CompositesIndex.IndexedEntry entry,
ColumnFamily data,
long now) |
protected java.nio.ByteBuffer |
makeIndexColumnName(java.nio.ByteBuffer rowKey,
Column column) |
protected abstract ColumnNameBuilder |
makeIndexColumnNameBuilder(java.nio.ByteBuffer rowKey,
java.nio.ByteBuffer columnName) |
void |
validateOptions()
Validates the index_options passed in the ColumnDef
|
delete, expressionString, forceBlockingFlush, getIndexCfs, getIndexedValue, getIndexName, getLiveSize, init, insert, invalidate, reload, removeIndex, truncateBlocking, update
getNameForSystemKeyspace, validate
buildIndexAsync, buildIndexBlocking, createInstance, getBaseCfs, getColumnDefs, getIndexKeyFor, indexes, isIndexBuilt, setIndexBuilt, setIndexRemoved
protected CompositeType getIndexComparator()
public static CompositesIndex create(ColumnDefinition cfDef)
public static CompositeType getIndexComparator(CFMetaData baseMetadata, ColumnDefinition cfDef)
protected java.nio.ByteBuffer makeIndexColumnName(java.nio.ByteBuffer rowKey, Column column)
makeIndexColumnName
in class AbstractSimplePerColumnSecondaryIndex
protected abstract ColumnNameBuilder makeIndexColumnNameBuilder(java.nio.ByteBuffer rowKey, java.nio.ByteBuffer columnName)
public abstract CompositesIndex.IndexedEntry decodeEntry(DecoratedKey indexedValue, Column indexEntry)
public abstract boolean isStale(CompositesIndex.IndexedEntry entry, ColumnFamily data, long now)
public void delete(CompositesIndex.IndexedEntry entry)
protected AbstractType getExpressionComparator()
getExpressionComparator
in class AbstractSimplePerColumnSecondaryIndex
protected CompositeType getBaseComparator()
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 © 2013 The Apache Software Foundation