public class Indexes extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
Indexes.Builder
Builder which is used to create a new Indexes object. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
InternalIndex | 
addOrGetIndex(String attribute,
             boolean ordered)
Obtains the existing index or creates a new one (if an index doesn't exist
 yet) for the given attribute in this indexes instance. 
 | 
void | 
clearAll()
Clears contents of indexes managed by this instance. 
 | 
void | 
destroyIndexes()
Destroys and then removes all the indexes from this indexes instance. 
 | 
InternalIndex | 
getIndex(String attribute)
Get index for a given attribute. 
 | 
InternalIndex[] | 
getIndexes()
Returns all the indexes known to this indexes instance. 
 | 
IndexesStats | 
getIndexesStats()
Returns the indexes stats of this indexes instance. 
 | 
boolean | 
hasIndex()
Returns  
true if this indexes instance contains at least one index,
 false otherwise. | 
boolean | 
isGlobal()  | 
static Indexes.Builder | 
newBuilder(SerializationService ss,
          IndexCopyBehavior indexCopyBehavior)  | 
Set<QueryableEntry> | 
query(Predicate predicate)
Performs a query on this indexes instance using the given predicate. 
 | 
void | 
removeEntryIndex(Data key,
                Object value,
                Index.OperationSource operationSource)
Removes the entry from this indexes instance identified by the given key
 and value. 
 | 
void | 
saveEntryIndex(QueryableEntry queryableEntry,
              Object oldValue,
              Index.OperationSource operationSource)
Inserts a new queryable entry into this indexes instance or updates the
 existing one. 
 | 
public InternalIndex addOrGetIndex(String attribute, boolean ordered)
attribute - the attribute to index.ordered - true if the new index should be ordered, false otherwise.public InternalIndex[] getIndexes()
public void destroyIndexes()
public void clearAll()
public boolean hasIndex()
true if this indexes instance contains at least one index,
 false otherwise.public void saveEntryIndex(QueryableEntry queryableEntry, Object oldValue, Index.OperationSource operationSource)
queryableEntry - the queryable entry to insert or update.oldValue - the old entry value to update, null if
                        inserting the new entry.operationSource - the operation source.public void removeEntryIndex(Data key, Object value, Index.OperationSource operationSource)
key - the key if the entry to remove.value - the value of the entry to remove.operationSource - the operation source.public boolean isGlobal()
public InternalIndex getIndex(String attribute)
attribute - the attribute name to get the index of.public Set<QueryableEntry> query(Predicate predicate)
predicate - the predicate to evaluate.null if the query can't be
 performed using the indexes known to this indexes instance.public IndexesStats getIndexesStats()
public static Indexes.Builder newBuilder(SerializationService ss, IndexCopyBehavior indexCopyBehavior)
ss - the serializationServiceindexCopyBehavior - the indexCopyBehaviorIndexCopyBehaviorCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.