Class ValueMapper<T>

    • Constructor Detail

      • ValueMapper

        public ValueMapper​(int index)
        Constructs a new ValueMapper that extracts the value at index 'i' from a tuple.
        Parameters:
        index - the index
    • Method Detail

      • apply

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