public class TridentMinMaxOfVehiclesTopology extends Object
This class demonstrates different usages of * Stream.minBy(String, Comparator)
* Stream.min(Comparator)
* Stream.maxBy(String, Comparator)
* Stream.max(Comparator)
operations on trident Stream
.
Constructor and Description |
---|
TridentMinMaxOfVehiclesTopology() |
Modifier and Type | Method and Description |
---|---|
static StormTopology |
buildVehiclesTopology()
Creates a topology which demonstrates min/max operations on tuples of stream which contain vehicle and driver fields with values
TridentMinMaxOfVehiclesTopology.Vehicle and TridentMinMaxOfVehiclesTopology.Driver respectively. |
static void |
main(String[] args) |
public static StormTopology buildVehiclesTopology()
Creates a topology which demonstrates min/max operations on tuples of stream which contain vehicle and driver fields with values TridentMinMaxOfVehiclesTopology.Vehicle
and TridentMinMaxOfVehiclesTopology.Driver
respectively.
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.