public class AttributeIndexRegistry extends Object
The main purpose of this class is to maintain decorators around ordered composite indexes to allow transparent querying on their first components.
| Constructor and Description |
|---|
AttributeIndexRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears this registry by unregistering all previously registered indexes.
|
InternalIndex |
match(String attribute,
QueryContext.IndexMatchHint matchHint)
Matches an index for the given attribute and match hint.
|
void |
register(InternalIndex index)
Registers the given index in this registry.
|
public void register(InternalIndex index)
This method expects external thread access synchronization applied, so there is no more than one writer at any given time.
index - the index to register.Indexes.addOrGetIndex(java.lang.String, boolean)public InternalIndex match(String attribute, QueryContext.IndexMatchHint matchHint)
attribute - the attribute to match an index for.matchHint - the match hint; QueryContext.IndexMatchHint.EXACT_NAME
is not supported by this method.null if nothing matched.QueryContext.IndexMatchHintpublic void clear()
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.