(Fields fields, int parallelism)
| 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; |
no test coverage detected