Package org.apache.storm.starter.trident
Class TridentMinMaxOfDevicesTopology
java.lang.Object
org.apache.storm.starter.trident.TridentMinMaxOfDevicesTopology
This class demonstrates different usages of
 * 
Stream.minBy(String)
 * Stream.maxBy(String)
 operations on trident Stream.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic StormTopologyCreates 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 StormTopologyCreates a topology which demonstrates min/max operations on tuples of stream which contain vehicle and driver fields with valuesTridentMinMaxOfDevicesTopology.VehicleandTridentMinMaxOfDevicesTopology.Driverrespectively.static void
- 
Constructor Details- 
TridentMinMaxOfDevicesTopologypublic TridentMinMaxOfDevicesTopology()
 
- 
- 
Method Details- 
buildDevicesTopologyCreates 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.
- 
buildVehiclesTopologyCreates a topology which demonstrates min/max operations on tuples of stream which contain vehicle and driver fields with valuesTridentMinMaxOfDevicesTopology.VehicleandTridentMinMaxOfDevicesTopology.Driverrespectively.
- 
main- Throws:
- Exception
 
 
-