public class KeysIndex extends CassandraIndex
Index.CollatedViewIndexBuildingSupport, Index.IndexBuildingSupport, Index.Indexer, Index.SearcherbaseCfs, functions, indexCfs, indexedColumn, metadataINDEX_BUILDER_SUPPORT| Constructor and Description | 
|---|
| KeysIndex(ColumnFamilyStore baseCfs,
         IndexMetadata indexDef) | 
| Modifier and Type | Method and Description | 
|---|---|
| CFMetaData.Builder | addIndexClusteringColumns(CFMetaData.Builder builder,
                         CFMetaData baseMetadata,
                         ColumnDefinition cfDef) | 
| protected CBuilder | buildIndexClusteringPrefix(java.nio.ByteBuffer partitionKey,
                          ClusteringPrefix prefix,
                          CellPath path)Used to construct an the clustering for an entry in the index table based on values from the base data. | 
| IndexEntry | decodeEntry(DecoratedKey indexedValue,
           Row indexEntry)Used at search time to convert a row in the index table into a simple struct containing the values required
 to retrieve the corresponding row from the base table. | 
| protected java.nio.ByteBuffer | getIndexedValue(java.nio.ByteBuffer partitionKey,
               Clustering clustering,
               CellPath path,
               java.nio.ByteBuffer cellValue)Extract the value to be inserted into the index from the components of the base data | 
| boolean | isStale(Row row,
       java.nio.ByteBuffer indexValue,
       int nowInSec)Check whether a value retrieved from an index is still valid by comparing it to current row from the base table. | 
customExpressionValueType, deleteStaleEntry, dependsOn, getBackingTable, getBlockingFlushTask, getEstimatedResultRows, getIndexCfs, getIndexComparator, getIndexedColumn, getIndexMetadata, getInitializationTask, getInvalidateTask, getMetadataReloadTask, getPostIndexQueryFilter, getTruncateTask, indexCfsMetadata, indexerFor, newIndex, postProcessorFor, register, searcherFor, shouldBuildBlocking, supportsExpression, supportsOperator, validate, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBuildTaskSupport, getFlushObserver, getPreJoinTaskpublic KeysIndex(ColumnFamilyStore baseCfs, IndexMetadata indexDef)
public CFMetaData.Builder addIndexClusteringColumns(CFMetaData.Builder builder, CFMetaData baseMetadata, ColumnDefinition cfDef)
protected CBuilder buildIndexClusteringPrefix(java.nio.ByteBuffer partitionKey, ClusteringPrefix prefix, CellPath path)
CassandraIndexbuildIndexClusteringPrefix in class CassandraIndexpartitionKey - from the base data being indexedprefix - from the base data being indexedpath - from the base data being indexedprotected java.nio.ByteBuffer getIndexedValue(java.nio.ByteBuffer partitionKey,
                                              Clustering clustering,
                                              CellPath path,
                                              java.nio.ByteBuffer cellValue)
CassandraIndexgetIndexedValue in class CassandraIndexpartitionKey - from the primary dataclustering - from the primary datapath - from the primary datacellValue - from the primary datapublic IndexEntry decodeEntry(DecoratedKey indexedValue, Row indexEntry)
CassandraIndexdecodeEntry in class CassandraIndexindexedValue - the partition key of the indexed table (i.e. the value that was indexed)indexEntry - a row from the index tablepublic boolean isStale(Row row, java.nio.ByteBuffer indexValue, int nowInSec)
CassandraIndexisStale in class CassandraIndexrow - the current row from the primary data tableindexValue - the value we retrieved from the indexCopyright © 2018 The Apache Software Foundation