Package com.tangosol.util
Class MultiBinaryLongMap.LeftoverLongMapHolder
- java.lang.Object
-
- com.tangosol.util.MultiBinaryLongMap.MaskedLongMapHolder
-
- com.tangosol.util.MultiBinaryLongMap.LeftoverLongMapHolder
-
- Enclosing class:
- MultiBinaryLongMap
public class MultiBinaryLongMap.LeftoverLongMapHolder extends MultiBinaryLongMap.MaskedLongMapHolder
LeftoverLongMapHolder is the MaskedLongMapHolder implementation that is backed by the "real" key tree itself. The MaskedBinaryLongMap instances created by this holder are stored in the upper 32-bits of the underlying key-tree (where the lower 32-bits encode the "slot" info). Additionally, the returned instances contain additional safety checks to ensure that users of the returned BinaryLongMap may not cause keys to be inadvertently (and illegally) added to the MultiBinaryLongMap.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
MultiBinaryLongMap.LeftoverLongMapHolder.LeftoverMaskedBinaryLongMap
LeftoverMaskedBinaryLongMap is a MaskedBinaryLongMap implementation that is backed by the leftover (upper 32) bits in "real" key-tree itself.
-
Field Summary
-
Fields inherited from class com.tangosol.util.MultiBinaryLongMap.MaskedLongMapHolder
f_blm, f_lMaskReserved, f_lockS, f_lockX, m_listBLMs, m_lMaskFree
-
-
Constructor Summary
Constructors Constructor Description LeftoverLongMapHolder()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MultiBinaryLongMap.MaskedBinaryLongMap
instantiateMaskedBinaryLongMap(int cShift, int cBits)
Factory method for instantiating MaskedBinaryLongMap instances associated with this MaskedLongMapHolder.-
Methods inherited from class com.tangosol.util.MultiBinaryLongMap.MaskedLongMapHolder
checkRep, getDelegateMap, isEmpty, releaseMap, reserveMap, shiftMaskedMap
-
-
-
-
Method Detail
-
instantiateMaskedBinaryLongMap
protected MultiBinaryLongMap.MaskedBinaryLongMap instantiateMaskedBinaryLongMap(int cShift, int cBits)
Factory method for instantiating MaskedBinaryLongMap instances associated with this MaskedLongMapHolder.- Overrides:
instantiateMaskedBinaryLongMap
in classMultiBinaryLongMap.MaskedLongMapHolder
- Parameters:
cShift
- the shift position of the masked BLMcBits
- the bit-width of values represented by the BLM- Returns:
- a MaskedBinaryLongMap with the specified shift and mask associated with this LongMapHolder (and backed by the underlying BLM)
-
-