Class PairValueMapper<K,​V>

    • Constructor Detail

      • PairValueMapper

        public PairValueMapper​(int keyIndex,
                               int valueIndex)
        Constructs a new PairValueMapper that constructs a pair from a tuple based on the key and value index.
        Parameters:
        keyIndex - the key index
        valueIndex - the value index
    • Method Detail

      • apply

        public Pair<K,​V> apply​(Tuple input)
        Description copied from interface: Function
        Applies this function to the given argument.
        Specified by:
        apply in interface Function<K,​V>
        Parameters:
        input - the input to the function
        Returns:
        the function result