Github user StephanEwen commented on a diff in the pull request:
https://github.com/apache/flink/pull/1480#discussion_r48659188
--- Diff:
flink-streaming-scala/src/main/scala/org/apache/flink/streaming/api/scala/DataStream.scala
---
@@ -44,7 +44,14 @@ class DataStream[T](javaStream: JavaStream[T]) {
/**
* Gets the underlying java DataStream object.
*/
- def getJavaStream: JavaStream[T] = javaStream
+ private[flink] def getJavaStream: JavaStream[T] = javaStream
+
+ /**
+ * Returns the [[StreamExecutionEnvironment]] associated with the
current [[DataStream]].
+ * @return associated execution environment
+ */
+ def getExecutionEnvironment: StreamExecutionEnvironment =
--- End diff --
This is consistent with other parts, but I would suggest to adopt the
following style: When defining a method without parenthesis (suggesting it
could transparently be a variable), it should not be called like a method. So
this one should rather be called `def executionEnvironment:
StreamExecutionEnvironment = ...`
---
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.
---