Interface IMapExtractor

    • Method Detail

      • getCollisionRatio

        java.lang.Double getCollisionRatio​(IObject collection)
                                    throws SnapshotException
        Calculates the collision ratio in the collection. Could be an estimate.
        Parameters:
        collection - - the collection to calculate the collision ratio of
        Returns:
        Double number of elements with colliding keys / size
        Throws:
        SnapshotException
        See Also:
        hasCollisionRatio()
      • extractMapEntries

        java.util.Iterator<java.util.Map.Entry<IObject,​IObject>> extractMapEntries​(IObject collection)
                                                                                  throws SnapshotException
        Extracts the contents of a map (i.e. an IObject representing a Map) and provides an Iterator over them
        Parameters:
        collection - - the map to extract contents from
        Returns:
        an Iterator over the entries. If the original Map had an Entry object, the content of the iterator would usually be EntryObject
        Throws:
        SnapshotException