Github user dukechain commented on a diff in the pull request:
https://github.com/apache/incubator-flink/pull/194#discussion_r20139821
--- Diff: flink-java/src/main/java/org/apache/flink/api/java/DataSet.java
---
@@ -246,6 +247,24 @@ public ExecutionEnvironment getExecutionEnvironment() {
return new Projection<T>(this, fieldIndexes);
}
+ /**
+ * Initiates a Project transformation on a {@link Tuple} {@link
DataSet}.<br/>
+ * <b>Note: Only Tuple DataSets can be projected.</b></br>
+ * The transformation projects each Tuple of the DataSet onto a
(sub)set of fields.</br>
+ * This method returns a {@link ProjectOperator} to complete the
transformation.
+ *
+ * @param fieldIndexes The field indexes of the input tuples that are
retained.
+ * The order of fields in the
output tuple corresponds to the order of field indexes.
+ * @return A ProjectOperator to complete the Project transformation.
+ *
+ * @see Tuple
+ * @see DataSet
+ * @see org.apache.flink.api.java.operators.ProjectOperator
+ */
+ public <OUT extends Tuple> ProjectOperator<?, OUT> projection(int...
fieldIndexes) {
--- End diff --
I agree with you absolutely. For a safe consideration, I retain the
original project() method. I would like to change this API totally.
---
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.
---