Class FieldsStreamGrouping

  • All Implemented Interfaces:
    Serializable, StreamGrouping

    public class FieldsStreamGrouping
    extends Object
    implements StreamGrouping
    This is the stream grouping strategy that tuples are sent to the particular instance of the downstream bolt based on the values of a specified fields.
    See Also:
    Serialized Form
    • Constructor Detail

      • FieldsStreamGrouping

        public FieldsStreamGrouping​(Fields fields)
    • 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 interface StreamGrouping
        Parameters:
        componentName - The parent component of this grouping logic
        streamId - The id of the input stream
        Returns:
        An InputStream builder to be used by BoltDeclarer