Package org.apache.storm.streams.operations.mappers

## Class ValuesMapper

- java.lang.Object
- - org.apache.storm.streams.operations.mappers.ValuesMapper

- All Implemented Interfaces:
    `Serializable`, `Function<Tuple,​Values>`, `TupleValueMapper<Values>`, `Operation`

      public class ValuesMapper
      extends Object
      implements TupleValueMapper<Values>

  Constructs a `Values` from a `Tuple` based on indicies.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ValuesMapper​(int... indices)` | Constructs a new `ValuesMapper` that extracts value from a `Tuple` at specified indices.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Values` | `apply​(Tuple input)` | Applies this function to the given argument.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ValuesMapper

          public ValuesMapper​(int... indices)

      Constructs a new `ValuesMapper` that extracts value from a `Tuple` at specified indices.
      Parameters:
        `indices` - the indices

  - ### Method Detail

    - #### apply

          public Values apply​(Tuple input)

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