K
- the map key typeV
- the map value typeR
- the return type of MapEntryOperations
specialized for the queried mappublic interface MapQueryContext<K,V,R> extends HashQueryContext<K>, MapContext<K,V,R>
ChronicleMap
operations with individual keys
(like during get()
, put()
, etc., opposed to bulk operations).
This is the main context type of MapMethods
and MapRemoteOperations
.ChronicleHash.queryContext(Object)
Modifier and Type | Method and Description |
---|---|
MapAbsentEntry<K,V> |
absentEntry()
Returns the special absent entry object, if the entry with the queried key
is absent in the hash, returns
null , if the entry is present. |
MapEntry<K,V> |
entry()
Returns the entry context, if the entry with the queried key is present
in the
ChronicleHash , returns null is the entry is absent. |
queriedKey, segmentIndex
readLock, updateLock, writeLock
hash, map, wrapValueAsData, wrapValueBytesAsData
set
insert, remove
insert, remove, replaceValue
defaultValue
@Nullable MapEntry<K,V> entry()
HashQueryContext
ChronicleHash
, returns null
is the entry is absent.entry
in interface HashQueryContext<K>
@Nullable MapAbsentEntry<K,V> absentEntry()
HashQueryContext
null
, if the entry is present.absentEntry
in interface HashQueryContext<K>
Copyright © 2022. All rights reserved.