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 |
---|---|
protected static void |
addGenericClusteringColumns(CFMetaData.Builder indexMetadata,
CFMetaData baseMetadata,
ColumnDefinition columnDef) |
static void |
addIndexClusteringColumns(CFMetaData.Builder indexMetadata,
CFMetaData baseMetadata,
ColumnDefinition cfDef) |
static CompositesIndex |
create(ColumnDefinition cfDef) |
SecondaryIndexSearcher |
createSecondaryIndexSearcher(java.util.Set<ColumnDefinition> columns)
Called at query time
Creates a implementation specific searcher instance for this index type
|
abstract CompositesIndex.IndexedEntry |
decodeEntry(DecoratedKey indexedValue,
Row indexEntry) |
void |
delete(CompositesIndex.IndexedEntry entry,
OpOrder.Group opGroup,
int nowInSec) |
abstract boolean |
isStale(Row row,
java.nio.ByteBuffer indexValue,
int nowInSec) |
void |
validateOptions()
Validates the index_options passed in the ColumnDef
|
buildIndexClusteringPrefix, delete, delete, deleteForCleanup, estimateResultRows, forceBlockingFlush, getIndexCfs, getIndexComparator, getIndexedValue, getIndexedValue, getIndexKeyComparator, getIndexName, indexedColumn, indexes, init, insert, insert, invalidate, makeIndexBound, makeIndexClustering, makeIndexClustering, reload, removeIndex, toString, truncateBlocking, update, validate, validate, validate
getNameForSystemKeyspace, indexPrimaryKeyColumn, indexRow, maybeDelete, maybeIndex
baseKeyspace, baseTable, buildIndexAsync, buildIndexBlocking, createInstance, getBaseCfs, getColumnDefs, getIndexKeyFor, isIndexBuilt, newIndexMetadata, setIndexBuilt, setIndexRemoved, supportsOperator
public static CompositesIndex create(ColumnDefinition cfDef)
public static void addIndexClusteringColumns(CFMetaData.Builder indexMetadata, CFMetaData baseMetadata, ColumnDefinition cfDef)
protected static void addGenericClusteringColumns(CFMetaData.Builder indexMetadata, CFMetaData baseMetadata, ColumnDefinition columnDef)
public abstract CompositesIndex.IndexedEntry decodeEntry(DecoratedKey indexedValue, Row indexEntry)
public abstract boolean isStale(Row row, java.nio.ByteBuffer indexValue, int nowInSec)
public void delete(CompositesIndex.IndexedEntry entry, OpOrder.Group opGroup, int nowInSec)
public SecondaryIndexSearcher createSecondaryIndexSearcher(java.util.Set<ColumnDefinition> 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 © 2015 The Apache Software Foundation