Github user fhueske commented on a diff in the pull request:
https://github.com/apache/incubator-flink/pull/194#discussion_r20137955
--- Diff:
flink-java/src/main/java/org/apache/flink/api/java/operators/JoinOperator.java
---
@@ -542,6 +542,33 @@ public void join(IN1 first, IN2 second, Collector<OUT>
out) throws Exception {
return new JoinProjection<I1, I2>(getInput1(),
getInput2(), getKeys1(), getKeys2(), getJoinHint(), firstFieldIndexes, null);
}
+
+ /**
+ * Initiates a ProjectJoin transformation and projects the
first join input<br/>
+ * If the first join input is a {@link Tuple} {@link DataSet},
fields can be selected by their index.
+ * If the first join input is not a Tuple DataSet, no
parameters should be passed.<br/>
+ *
+ * Fields of the first and second input can be added by
chaining the method calls of
+ * {@link
org.apache.flink.api.java.operators.JoinOperator.ProjectJoin#projectionFirst(int...)}
and
+ * {@link
org.apache.flink.api.java.operators.JoinOperator.ProjectJoin#projectionSecond(int...)}.
+ *
+ * @param firstFieldIndexes If the first input is a Tuple
DataSet, the indexes of the selected fields.
+ * For a non-Tuple
DataSet, do not provide parameters.
+ * The order of fields
in the output tuple is defined by to the order of field indexes.
+ * @return A ProjectJoin to complete the Join transformation.
+ *
+ * @see Tuple
+ * @see DataSet
+ * @see
org.apache.flink.api.java.operators.JoinOperator.JoinProjection
+ * @see
org.apache.flink.api.java.operators.JoinOperator.ProjectJoin
+ */
+ public <OUT extends Tuple> ProjectJoin<I1, I2, OUT>
projectionFirst(int... firstFieldIndexes) {
--- End diff --
rename to ``projectFirst()`` and ``projectSecond()``.
---
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.
---