public abstract class BaseSingleValueIndexStore extends BaseIndexStore
MultiResult
s are split into
individual values and each value is inserted/removed separately.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 entryKey,
Object entryValue,
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, wait
canEvaluate, canonicalizeQueryArgumentScalar, clear, evaluate, getRecords, getRecords, getRecords, getRecords, isEvaluateOnly
public final void insert(Object value, QueryableEntry record, IndexOperationStats operationStats)
IndexStore
value
- 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)
IndexStore
The update operation is logically equivalent to removing the old mapping and inserting the new one.
oldValue
- 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, java.lang.Object, 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 entryKey, Object entryValue, IndexOperationStats operationStats)
IndexStore
value
- the value to remove the mapping from.entryKey
- the entry key to remove the mapping to.entryValue
- the entry 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()
IndexStore
destroy
in interface IndexStore
destroy
in class BaseIndexStore
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.