MCPcopy Create free account
hub / github.com/apache/storm / partitionBy

Method partitionBy

storm-client/src/jvm/org/apache/storm/streams/Stream.java:432–436  ·  view source on GitHub ↗
(Fields fields, int parallelism)

Source from the content-addressed store, hash-verified

430 }
431
432 protected Stream<T> partitionBy(Fields fields, int parallelism) {
433 return new Stream<>(
434 streamBuilder,
435 addNode(node, new PartitionNode(stream, node.getOutputFields(), GroupingInfo.fields(fields)), parallelism));
436 }
437
438 private boolean shouldPartition() {
439 return node.getParallelism() > 1;

Callers 1

stateQueryMethod · 0.95

Calls 3

addNodeMethod · 0.95
fieldsMethod · 0.95
getOutputFieldsMethod · 0.65

Tested by

no test coverage detected