Skip to content

Commit f79944a

Browse files
mushketykaljoscha
authored andcommitted
[FLINK-5360] Fix argument names in WindowedStream
1 parent 36cf7eb commit f79944a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/WindowedStream.java

+9-9
Original file line numberDiff line numberDiff line change
@@ -833,14 +833,14 @@ public SingleOutputStreamOperator<T> minBy(int positionToMinBy) {
833833

834834
/**
835835
* Applies an aggregation that gives the minimum element of every window of
836-
* the data stream by the given position. If more elements have the same
836+
* the data stream by the given field. If more elements have the same
837837
* minimum value the operator returns the first element by default.
838838
*
839-
* @param positionToMinBy The position to minimize by
839+
* @param field The field to minimize by
840840
* @return The transformed DataStream.
841841
*/
842-
public SingleOutputStreamOperator<T> minBy(String positionToMinBy) {
843-
return this.minBy(positionToMinBy, true);
842+
public SingleOutputStreamOperator<T> minBy(String field) {
843+
return this.minBy(field, true);
844844
}
845845

846846
/**
@@ -912,15 +912,15 @@ public SingleOutputStreamOperator<T> maxBy(int positionToMaxBy) {
912912

913913
/**
914914
* Applies an aggregation that gives the maximum element of every window of
915-
* the data stream by the given position. If more elements have the same
915+
* the data stream by the given field. If more elements have the same
916916
* maximum value the operator returns the first by default.
917917
*
918-
* @param positionToMaxBy
919-
* The position to maximize by
918+
* @param field
919+
* The field to maximize by
920920
* @return The transformed DataStream.
921921
*/
922-
public SingleOutputStreamOperator<T> maxBy(String positionToMaxBy) {
923-
return this.maxBy(positionToMaxBy, true);
922+
public SingleOutputStreamOperator<T> maxBy(String field) {
923+
return this.maxBy(field, true);
924924
}
925925

926926
/**

0 commit comments

Comments
 (0)