K
- the set key typeR
- the return type of SetEntryOperations
specialized for the queried setpublic interface SetQueryContext<K,R> extends HashQueryContext<K>, SetContext<K,R>
ChronicleSet
operations with individual keys
(most: contains()
, add()
, etc., opposed to bulk operations).ChronicleHash.queryContext(Object)
Modifier and Type | Method and Description |
---|---|
SetAbsentEntry<K> |
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. |
SetEntry<K> |
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, set
insert, remove
@Nullable SetEntry<K> entry()
HashQueryContext
ChronicleHash
, returns null
is the entry is absent.entry
in interface HashQueryContext<K>
@Nullable SetAbsentEntry<K> absentEntry()
HashQueryContext
null
, if the entry is present.absentEntry
in interface HashQueryContext<K>
Copyright © 2022. All rights reserved.