public abstract class CompositesIndex extends AbstractSimplePerColumnSecondaryIndex
| Modifier and Type | Class and Description |
|---|---|
static class |
CompositesIndex.IndexedEntry |
columnDef, indexCfsbaseCfs, 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, deleteForCleanup, expressionString, forceBlockingFlush, getIndexCfs, getIndexedValue, getIndexName, getLiveSize, init, insert, invalidate, reload, removeIndex, truncateBlocking, updategetNameForSystemKeyspace, validatebuildIndexAsync, buildIndexBlocking, createInstance, getBaseCfs, getColumnDefs, getIndexKeyFor, indexes, isIndexBuilt, setIndexBuilt, setIndexRemoved, toStringprotected 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 AbstractSimplePerColumnSecondaryIndexprotected 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 AbstractSimplePerColumnSecondaryIndexprotected CompositeType getBaseComparator()
public 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 © 2015 The Apache Software Foundation