Class PartitionSplittingBackingMap.MaskedPartitionMap

java.lang.Object
com.tangosol.util.Base
com.tangosol.util.AbstractKeyBasedMap
com.tangosol.net.partition.PartitionSplittingBackingMap.MaskedPartitionMap
All Implemented Interfaces:
Map
Enclosing class:
PartitionSplittingBackingMap

public class PartitionSplittingBackingMap.MaskedPartitionMap extends AbstractKeyBasedMap implements Map
A read-only view into a subset of backing maps managed by the underlying PartitionSplittingBackingMap.
  • Constructor Details

    • MaskedPartitionMap

      protected MaskedPartitionMap(PartitionSet partMask)
      Construct MaskedPartitionMap based on the specified PartitionSet.
      Parameters:
      partMask - the partition set that indicates which backing maps are represented by this MaskedPartitionMap
  • Method Details

    • get

      public Object get(Object oKey)
      Returns the value to which this map maps the specified key.
      Specified by:
      get in interface Map
      Specified by:
      get in class AbstractKeyBasedMap
      Parameters:
      oKey - the key object
      Returns:
      the value to which this map maps the specified key, or null if the map contains no mapping for this key
    • containsKey

      public boolean containsKey(Object oKey)
      Returns true if this map contains a mapping for the specified key.
      Specified by:
      containsKey in interface Map
      Overrides:
      containsKey in class AbstractKeyBasedMap
      Returns:
      true if this map contains a mapping for the specified key, false otherwise.
    • isEmpty

      public boolean isEmpty()
      Returns true if this map contains no key-value mappings.
      Specified by:
      isEmpty in interface Map
      Overrides:
      isEmpty in class AbstractKeyBasedMap
      Returns:
      true if this map contains no key-value mappings
    • size

      public int size()
      Returns the number of key-value mappings in this map.
      Specified by:
      size in interface Map
      Overrides:
      size in class AbstractKeyBasedMap
      Returns:
      the number of key-value mappings in this map
    • iterateKeys

      protected Iterator iterateKeys()
      Create an iterator over the keys in this Map. The Iterator must support remove() if the Map supports removal.
      Specified by:
      iterateKeys in class AbstractKeyBasedMap
      Returns:
      a new instance of an Iterator over the keys in this Map