Class KVStoreCollectionOneLayerPartition

  • All Implemented Interfaces:
    java.lang.Iterable<java.util.Map.Entry<java.lang.String,​KVStoreCollection>>

    public class KVStoreCollectionOneLayerPartition
    extends java.lang.Object
    implements java.lang.Iterable<java.util.Map.Entry<java.lang.String,​KVStoreCollection>>
    Automatically partitions a KVStoreCollection according to the values of the partitioning key when KVStores or KVStoreCollections are added.
    • Constructor Detail

      • KVStoreCollectionOneLayerPartition

        public KVStoreCollectionOneLayerPartition​(java.lang.String partitionKey,
                                                  KVStoreCollection collection)
        Creates an empty two layer KVStoreCollection partition.
        Parameters:
        partitionKey - The field name for the partitioning key.
        collection - The KVStoreCollection to initialize this partition.
      • KVStoreCollectionOneLayerPartition

        public KVStoreCollectionOneLayerPartition​(java.lang.String firstLevelKey)
        Creates an empty two layer KVStorCollection partition.
        Parameters:
        partitionKey - The field name for the first level partition.
    • Method Detail

      • entrySet

        public java.util.Set<java.util.Map.Entry<java.lang.String,​KVStoreCollection>> entrySet()
        Returns:
        The set of entries of this partition.
      • iterator

        public java.util.Iterator<java.util.Map.Entry<java.lang.String,​KVStoreCollection>> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<java.util.Map.Entry<java.lang.String,​KVStoreCollection>>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object