public abstract class BaseIndexStore extends Object implements IndexStore
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys this index by releasing all its resources.
|
void |
insert(Object value,
QueryableEntry record,
IndexOperationStats operationStats)
Inserts the given entry into this index store under the given value
acting as an index key.
|
void |
remove(Object value,
Data indexKey,
IndexOperationStats operationStats)
Removes the existing entry mapping in this index.
|
void |
update(Object oldValue,
Object newValue,
QueryableEntry entry,
IndexOperationStats operationStats)
Updates the existing entry mapping in this index by remapping it from the
given old value to the new given value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanonicalizeQueryArgumentScalar, clear, getRecords, getRecords, getRecords, getRecordspublic final void insert(Object value, QueryableEntry record, IndexOperationStats operationStats)
IndexStoreinsert in interface IndexStorevalue - the value to insert the entry under.record - the entry to insert.operationStats - the operation stats to update while performing the
operation.Index.putEntry(com.hazelcast.query.impl.QueryableEntry, java.lang.Object, com.hazelcast.query.impl.Index.OperationSource),
IndexOperationStats.onEntryAdded(java.lang.Object, java.lang.Object)public final void update(Object oldValue, Object newValue, QueryableEntry entry, IndexOperationStats operationStats)
IndexStoreThe update operation is logically equivalent to removing the old mapping and inserting the new one.
update in interface IndexStoreoldValue - the value to remap the entry from.newValue - the new value to remap the entry to.entry - the entry to remap.operationStats - the operation stats to update while performing the
operation.IndexStore.remove(java.lang.Object, com.hazelcast.nio.serialization.Data, com.hazelcast.monitor.impl.IndexOperationStats),
IndexStore.insert(java.lang.Object, com.hazelcast.query.impl.QueryableEntry, com.hazelcast.monitor.impl.IndexOperationStats),
Index.putEntry(com.hazelcast.query.impl.QueryableEntry, java.lang.Object, com.hazelcast.query.impl.Index.OperationSource),
IndexOperationStats.onEntryRemoved(java.lang.Object),
IndexOperationStats.onEntryAdded(java.lang.Object, java.lang.Object)public final void remove(Object value, Data indexKey, IndexOperationStats operationStats)
IndexStoreremove in interface IndexStorevalue - the value to remove the mapping from.indexKey - the value to remove the mapping to.operationStats - the operation stats to update while performing the
operation.Index.removeEntry(com.hazelcast.nio.serialization.Data, java.lang.Object, com.hazelcast.query.impl.Index.OperationSource),
IndexOperationStats.onEntryRemoved(java.lang.Object)public void destroy()
IndexStoredestroy in interface IndexStoreCopyright © 2019 Hazelcast, Inc.. All Rights Reserved.