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 Details

    • TypedTupleExample

      public TypedTupleExample()
  • Method Details

    • 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