public interface IndexRegistry
Modifier and Type | Field and Description |
---|---|
static IndexRegistry |
EMPTY
An empty
IndexRegistry |
static IndexRegistry |
NON_DAEMON
An
IndexRegistry intended for use when Cassandra is initialized in client or tool mode. |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<Index> |
getBestIndexFor(RowFilter.Expression expression) |
Index |
getIndex(IndexMetadata indexMetadata) |
java.util.Collection<Index> |
listIndexes() |
static IndexRegistry |
obtain(TableMetadata table)
Returns the
IndexRegistry associated to the specified table. |
void |
registerIndex(Index index) |
void |
unregisterIndex(Index index) |
void |
validate(PartitionUpdate update)
Called at write time to ensure that values present in the update
are valid according to the rules of all registered indexes which
will process it.
|
static final IndexRegistry EMPTY
IndexRegistry
static final IndexRegistry NON_DAEMON
IndexRegistry
intended for use when Cassandra is initialized in client or tool mode.
Contains a single stub Index
which possesses no actual indexing or searching capabilities
but enables query validation and preparation to succeed. Useful for tools which need to prepare
CQL statements without instantiating the whole ColumnFamilyStore infrastructure.void registerIndex(Index index)
void unregisterIndex(Index index)
Index getIndex(IndexMetadata indexMetadata)
java.util.Collection<Index> listIndexes()
java.util.Optional<Index> getBestIndexFor(RowFilter.Expression expression)
void validate(PartitionUpdate update)
update
- PartitionUpdate containing the values to be validated by registered Index implementationsstatic IndexRegistry obtain(TableMetadata table)
IndexRegistry
associated to the specified table.table
- the table metadataIndexRegistry
associated to the specified tableCopyright © 2009- The Apache Software Foundation