Github user fhueske commented on a diff in the pull request:
https://github.com/apache/flink/pull/1255#discussion_r46558726
--- Diff: flink-java/src/main/java/org/apache/flink/api/java/DataSet.java
---
@@ -1246,7 +1246,46 @@ public long count() throws Exception {
final TypeInformation<K> keyType =
TypeExtractor.getKeySelectorTypes(keyExtractor, getType());
return new PartitionOperator<T>(this, PartitionMethod.HASH, new
Keys.SelectorFunctionKeys<T, K>(clean(keyExtractor), this.getType(), keyType),
Utils.getCallLocationName());
}
-
+
+ /**
+ * Range-partitions a DataSet on the specified key fields.
+ * <p>
+ * <b>Important:</b>This operation shuffles the whole DataSet over the
network and can take significant amount of time.
--- End diff --
We should add that range partitioning requires an additional pass over the
data to obtain the distribution.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---