|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.MultiBinaryLongMap.AbstractDelegateBinaryLongMap
public abstract static class MultiBinaryLongMap.AbstractDelegateBinaryLongMap
Abstract base class for BinaryLongMap implementations that delegate the key and value storage to the MultiBinaryLongMap.
Nested Class Summary | |
---|---|
protected class |
MultiBinaryLongMap.AbstractDelegateBinaryLongMap.DelegateEntryVisitor DelegateEntryVisitor is a wrapper for an EntryVisitor that exposes the logical entries of this AbstractDelegateBinaryLongMap. |
Nested classes/interfaces inherited from interface com.tangosol.util.BinaryLongMap |
---|
BinaryLongMap.Entry, BinaryLongMap.EntryVisitor, BinaryLongMap.SimpleMapImpl |
Field Summary | |
---|---|
protected BinaryLongMap |
f_blm The BinaryLongMap to delegate storage of this BinaryLongMap's keys to. |
protected MultiBinaryLongMap.LongStorage |
f_store The LongStorage to delegate storage of this BinaryLongMap's values to. |
protected int |
m_iIndex The index into the LongStorage. |
Constructor Summary | |
---|---|
MultiBinaryLongMap.AbstractDelegateBinaryLongMap(BinaryLongMap blm, MultiBinaryLongMap.LongStorage store, int iIndex) Construct an AbstractDelegateBinaryLongMap based on the specified key tree, long storage, and storage index. |
Method Summary | |
---|---|
long |
get(Binary binKey) Find the specified key in the map and return the value associated with it. |
protected int |
getIndex() Determine the index into the LongStorage that this DelegatingBinaryLongMap is assigned. |
protected int |
getSlot(Binary binKey) Return the slot index associated with the specified key. |
void |
internKeys(java.lang.Object o) Internal opaque method: De-duplicate keys. |
java.util.Iterator |
keys() Obtain an iterator of the keys stored in the map. |
java.util.Iterator |
keys(com.oracle.common.base.Predicate predicate) Obtain an iterator of the keys stored in the map whose corresponding Entry matches the passed Predicate<Entry> . |
protected void |
setIndex(int iIndex) Set the index into the LongStorage assigned to this DelegatingBinaryLongMap. |
protected boolean |
updateValue(int iSlot, long lValueOld, long lValueNew, boolean fForce) Associate the passed value with the specified key, optionally performing the operation only if the value currently associated with the key matches the passed "old" value. |
void |
visit(Binary binKey, BinaryLongMap.EntryVisitor visitor) Apply the specified visitor to the entry associated with the specified key, if the entry exists or may be added. |
void |
visitAll(BinaryLongMap.EntryVisitor visitor) Apply the specified visitor to all entries in the BinaryLongMap. |
Methods inherited from interface com.tangosol.util.BinaryLongMap |
---|
clear, put, putIfAbsent, remove, remove, replace, size |
Field Detail |
---|
protected final BinaryLongMap f_blm
protected final MultiBinaryLongMap.LongStorage f_store
protected int m_iIndex
Constructor Detail |
---|
public MultiBinaryLongMap.AbstractDelegateBinaryLongMap(BinaryLongMap blm, MultiBinaryLongMap.LongStorage store, int iIndex)
blm
- the BinaryLongMap holding the keysstore
- the long storageiIndex
- the storage indexMethod Detail |
---|
public long get(Binary binKey)
get
in interface BinaryLongMap
binKey
- a Binary keypublic void internKeys(java.lang.Object o)
internKeys
in interface BinaryLongMap
o
- some implementation-specific objectpublic java.util.Iterator keys()
keys
in interface BinaryLongMap
public java.util.Iterator keys(com.oracle.common.base.Predicate predicate)
Entry
matches the passed Predicate<Entry>
.
The entry passed to the predicate should be treated as read-only, and any attempt to modify the entry may have undefined behavior and/or throw an Exception. Modifications to entries should instead be performed using an BinaryLongMap.EntryVisitor
via the BinaryLongMap.visit(com.tangosol.util.Binary, com.tangosol.util.BinaryLongMap.EntryVisitor)
or BinaryLongMap.visitAll(com.tangosol.util.BinaryLongMap.EntryVisitor)
methods.
keys
in interface BinaryLongMap
predicate
- a Predicate<Entry> to apply to each Entrypublic void visit(Binary binKey, BinaryLongMap.EntryVisitor visitor)
BinaryLongMap.Entry.setValue(long)
).visit
in interface BinaryLongMap
binKey
- the key to visitvisitor
- the visitor to applypublic void visitAll(BinaryLongMap.EntryVisitor visitor)
visitAll
in interface BinaryLongMap
visitor
- the visitor to applyprotected int getIndex()
protected void setIndex(int iIndex)
iIndex
- the index into the LongStorageprotected int getSlot(Binary binKey)
binKey
- the key to return the slot forprotected boolean updateValue(int iSlot, long lValueOld, long lValueNew, boolean fForce)
iSlot
- the slot whose value to updatelValueOld
- the value that is assumed to be currently associated with the keylValueNew
- the value to associate with the keyfForce
- true iff the value should be associated regardless of the old value
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |