java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_long.to_collection.MapFunctions
All Implemented Interfaces:
java.util.function.LongFunction<java.util.Map<java.lang.Object,​java.lang.Object>>

public class MapFunctions
extends java.lang.Object
implements java.util.function.LongFunction<java.util.Map<java.lang.Object,​java.lang.Object>>
Create a Map from a long input based on a set of provided key and value functions. Any duplicate entries produced by the key functions are elided. As a 'Pair-wise' function, the size of the resulting collection is determined directly by the number of provided element functions. Since this is a map, the functions come in pairs, each even numbered function is a key function and each odd numbered function is the corresponding value function. As neither a 'Stepped' nor a 'Hashed' function, the input value used by each key and value function is the same as that provided to the outer function.
  • Constructor Summary

    Constructors
    Constructor Description
    MapFunctions​(java.lang.Object... funcs)  
  • Method Summary

    Modifier and Type Method Description
    java.util.Map<java.lang.Object,​java.lang.Object> apply​(long value)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MapFunctions

      public MapFunctions​(java.lang.Object... funcs)
  • Method Details

    • apply

      public java.util.Map<java.lang.Object,​java.lang.Object> apply​(long value)
      Specified by:
      apply in interface java.util.function.LongFunction<java.util.Map<java.lang.Object,​java.lang.Object>>