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 |
|---|---|
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, validategetNameForSystemKeyspace, indexPrimaryKeyColumn, indexRow, maybeDelete, maybeIndexbaseKeyspace, baseTable, buildIndexAsync, buildIndexBlocking, createInstance, getBaseCfs, getColumnDefs, getIndexKeyFor, isIndexBuilt, newIndexMetadata, setIndexBuilt, setIndexRemoved, supportsOperatorpublic 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)
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