Package org.apache.heron.api.grouping
Class ShuffleStreamGrouping
- java.lang.Object
-
- org.apache.heron.api.grouping.ShuffleStreamGrouping
-
- All Implemented Interfaces:
Serializable
,StreamGrouping
public class ShuffleStreamGrouping extends Object implements StreamGrouping
This is the stream grouping strategy that tuples are randomly distributed to instances of the bolt.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ShuffleStreamGrouping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.heron.api.generated.TopologyAPI.InputStream.Builder
buildStream(String componentName, String streamId)
Create an InputStream Builder object with the corresponding grouping logic.
-
-
-
Method Detail
-
buildStream
public org.apache.heron.api.generated.TopologyAPI.InputStream.Builder buildStream(String componentName, String streamId)
Description copied from interface:StreamGrouping
Create an InputStream Builder object with the corresponding grouping logic.- Specified by:
buildStream
in interfaceStreamGrouping
- Parameters:
componentName
- The parent component of this grouping logicstreamId
- The id of the input stream- Returns:
- An InputStream builder to be used by BoltDeclarer
-
-