org.apache.storm.starter.streams

## Class TypedTupleExample

- java.lang.Object
- - org.apache.storm.starter.streams.TypedTupleExample

-     public class TypedTupleExample
      extends Object

  An example that illustrates the usage of typed tuples (TupleN<..>) and `TupleValueMappers`.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TypedTupleExample()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `main(String[] args)` The spout emits sequences of (Integer, Long, Long).

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

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

- - ### Constructor Detail

    - #### TypedTupleExample

          public TypedTupleExample()

  - ### Method Detail

    - #### main

          public static void main(String[] args)
                           throws Exception

      The spout emits sequences of (Integer, Long, Long). TupleValueMapper can be used to extract fields from the values and produce a stream of typed tuple (Tuple3<Integer, Long, Long> in this case.

      Throws:
        `Exception`

Copyright © 2019 The Apache Software Foundation. All rights reserved.