365366367368369370371
return allGrouping(componentId, Utils.DEFAULT_STREAM_ID); } public BoltDeclarer allGrouping(String componentId, String streamId) { return grouping(componentId, streamId, Grouping.all(new NullStruct())); }
374375376377378379380
return directGrouping(componentId, Utils.DEFAULT_STREAM_ID); } public BoltDeclarer directGrouping(String componentId, String streamId) { return grouping(componentId, streamId, Grouping.direct(new NullStruct())); }
79808182838485
public Stream partition(CustomStreamGrouping partitioner) { return partition(Grouping.custom_serialized(Utils.serialize(partitioner))); } public Stream shuffle() { return partition(Grouping.shuffle(new NullStruct())); }
83848586878889
public Stream shuffle() { return partition(Grouping.shuffle(new NullStruct())); } public Stream localOrShuffle() { return partition(Grouping.local_or_shuffle(new NullStruct())); }
979899100101102103
// the first field is the batch id return partition(new IndexHashGrouping(0)); } public Stream broadcast() { return partition(Grouping.all(new NullStruct())); }