sunhaibotb commented on a change in pull request #7959: [FLINK-11876] Introduce
new InputSelectable, BoundedOneInput and BoundedMultiInput interfaces
URL: https://github.com/apache/flink/pull/7959#discussion_r269637903
##########
File path:
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/InputSelection.java
##########
@@ -79,15 +79,15 @@ public String toString() {
* Selects an input identified by the given {@code inputId}.
*
* @param inputId
- * the input id numbered starting from 1 to 63, and `1`
indicates the first input.
+ * the input id numbered starting from 1 to 64, and `1`
indicates the first input.
* Specially, `-1` indicates all inputs.
* @return
*/
public InputSelectionBuilder select(long inputId) {
if (inputId > 0 && inputId <= 64){
- inputMask |= 1 << (inputId - 1);
- } else if (inputId == -1) {
- inputMask = -1;
+ inputMask |= 1L << (inputId - 1);
Review comment:
The unit test has been added to the update code.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services