public class TridentMinMaxOfDevicesTopology extends Object
Stream.minBy(String)
* Stream.maxBy(String)
operations on trident Stream
.Constructor and Description |
---|
TridentMinMaxOfDevicesTopology() |
Modifier and Type | Method and Description |
---|---|
static StormTopology |
buildDevicesTopology()
Creates a topology with device-id and count (which are whole numbers) as tuple fields in a stream and it finally
generates result stream based on min amd max with device-id and count values.
|
static StormTopology |
buildVehiclesTopology()
Creates a topology which demonstrates min/max operations on tuples of stream which contain vehicle and driver fields
with values
TridentMinMaxOfDevicesTopology.Vehicle and TridentMinMaxOfDevicesTopology.Driver respectively. |
static void |
main(String[] args) |
public static StormTopology buildDevicesTopology()
public static StormTopology buildVehiclesTopology()
TridentMinMaxOfDevicesTopology.Vehicle
and TridentMinMaxOfDevicesTopology.Driver
respectively.Copyright © 2023 The Apache Software Foundation. All rights reserved.