Skip navigation links
com.tangosol.util
Class MultiBinaryLongMap.LeftoverLongMapHolder.LeftoverMaskedBinaryLongMap
java.lang.Object
com.tangosol.util.MultiBinaryLongMap.MaskedBinaryLongMap
com.tangosol.util.MultiBinaryLongMap.LeftoverLongMapHolder.LeftoverMaskedBinaryLongMap
- All Implemented Interfaces:
- BinaryLongMap
- Enclosing class:
- MultiBinaryLongMap.LeftoverLongMapHolder
-
public class MultiBinaryLongMap.LeftoverLongMapHolder.LeftoverMaskedBinaryLongMap
- extends MultiBinaryLongMap.MaskedBinaryLongMap
LeftoverMaskedBinaryLongMap is a MaskedBinaryLongMap implementation that is backed by the leftover (upper 32) bits in "real" key-tree itself.
Methods inherited from class com.tangosol.util.MultiBinaryLongMap.MaskedBinaryLongMap |
clear, decode, get, getHolder, internKeys, keys, keys, put, putIfAbsent, remove, remove, replace, size, visit, visitAll |
MultiBinaryLongMap.LeftoverLongMapHolder.LeftoverMaskedBinaryLongMap
public MultiBinaryLongMap.LeftoverLongMapHolder.LeftoverMaskedBinaryLongMap(MultiBinaryLongMap.MaskedLongMapHolder holder,
BinaryLongMap blm,
int cShift,
int cBits)
- Construct a LeftoverMaskedBinaryLongMap.
- Parameters:
holder
- the MaskedLongMapHolder
blm
- the underlying BinaryLongMap
cShift
- the number of positions to left-shift the values stored in this MaskedBinaryLongMap
cBits
- the number of bits in the values stored in this MaskedBinaryLongMap
encode
protected long encode(long lEncoded,
long lValue)
- Encode the specified n-bit value into the possibly already encoded value, preserving any unrelated bits.
-
- Overrides:
encode
in class MultiBinaryLongMap.MaskedBinaryLongMap
-
- Parameters:
lEncoded
- the 64-bit value to encode into
lValue
- the value to encode
- Returns:
- the new encoded value
instantiateMaskedEntryVisitor
protected MultiBinaryLongMap.MaskedBinaryLongMap.MaskedEntryVisitor instantiateMaskedEntryVisitor(BinaryLongMap.EntryVisitor visitor,
boolean fExisting)
- Instantiate a MaskedEntryVisitor to use to
MultiBinaryLongMap.MaskedBinaryLongMap.visit(com.tangosol.util.Binary, com.tangosol.util.BinaryLongMap.EntryVisitor)
entries in this MaskedBinaryLongMap.
-
- Overrides:
instantiateMaskedEntryVisitor
in class MultiBinaryLongMap.MaskedBinaryLongMap
-
- Parameters:
visitor
- the underlying visitor to wrap
fExisting
- true iff the underlying visitor is to visit only entries that logically exist in the MaskedBinaryLongMap
- Returns:
- a MaskedEntryVisitor
Skip navigation links
Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.