Class TypedTupleExample


  • public class TypedTupleExample
    extends Object
    An example that illustrates the usage of typed tuples (TupleN<..>) and TupleValueMappers.
    • 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