Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.util
Class MultiBinaryLongMap.LeftoverLongMapHolder.LeftoverMaskedBinaryLongMap

java.lang.Object
  extended by com.tangosol.util.MultiBinaryLongMap.MaskedBinaryLongMap
      extended by 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.


Nested Class Summary

 

Nested classes/interfaces inherited from class com.tangosol.util.MultiBinaryLongMap.MaskedBinaryLongMap
MultiBinaryLongMap.MaskedBinaryLongMap.MaskedEntry, MultiBinaryLongMap.MaskedBinaryLongMap.MaskedEntryVisitor

 

Nested classes/interfaces inherited from interface com.tangosol.util.BinaryLongMap
BinaryLongMap.Entry, BinaryLongMap.EntryVisitor, BinaryLongMap.SimpleMapImpl

 

Field Summary

 

Fields inherited from class com.tangosol.util.MultiBinaryLongMap.MaskedBinaryLongMap
f_blm, f_cBits, f_holder, f_nMask, m_cShift

 

Constructor Summary
MultiBinaryLongMap.LeftoverLongMapHolder.LeftoverMaskedBinaryLongMap(MultiBinaryLongMap.MaskedLongMapHolder holder, BinaryLongMap blm, int cShift, int cBits)
          Construct a LeftoverMaskedBinaryLongMap.

 

Method Summary
protected  long encode(long lEncoded, long lValue)
          Encode the specified n-bit value into the possibly already encoded value, preserving any unrelated bits.
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.

 

Methods inherited from class com.tangosol.util.MultiBinaryLongMap.MaskedBinaryLongMap
clear, decode, get, getHolder, internKeys, keys, keys, put, putIfAbsent, remove, remove, replace, size, visit, visitAll

 

Constructor Detail

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

Method Detail

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

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.