aljoscha commented on a change in pull request #13637:
URL: https://github.com/apache/flink/pull/13637#discussion_r511857516
##########
File path:
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java
##########
@@ -832,14 +833,42 @@ private StateBackend loadStateBackend(ReadableConfig
configuration, ClassLoader
* @param to
* The number to stop at (inclusive)
* @return A data stream, containing all number in the [from, to]
interval
+ * @deprecated Use {@link #fromSequence(long, long)} instead to create
a new data stream
+ * that contains {@link
org.apache.flink.api.connector.source.lib.NumberSequenceSource}.
Review comment:
We shouldn't mention the internal implementation here.
```suggestion
* @deprecated Use {@link #fromSequence(long, long)} instead to create
a new sequence data stream.
```
##########
File path:
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java
##########
@@ -832,14 +833,42 @@ private StateBackend loadStateBackend(ReadableConfig
configuration, ClassLoader
* @param to
* The number to stop at (inclusive)
* @return A data stream, containing all number in the [from, to]
interval
+ * @deprecated Use {@link #fromSequence(long, long)} instead to create
a new data stream
+ * that contains {@link
org.apache.flink.api.connector.source.lib.NumberSequenceSource}.
*/
+ @Deprecated
public DataStreamSource<Long> generateSequence(long from, long to) {
if (from > to) {
throw new IllegalArgumentException("Start of sequence
must not be greater than the end");
}
return addSource(new StatefulSequenceSource(from, to),
"Sequence Source");
}
+ /**
+ * Creates a new data stream that contains {@link
org.apache.flink.api.connector.source.lib.NumberSequenceSource}
Review comment:
I don't think we need to mention that implementation detail here.
@StephanEwen Sorry if you requested that this be mentioned here, then we can
leave it in. 😅
----------------------------------------------------------------
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]