File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
flink-scala/src/main/scala/org/apache/flink/api/scala Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ class DataSet[T: ClassTag](set: JavaDataSet[T]) {
107
107
* @return
108
108
* associated execution environment
109
109
*/
110
- def getExecutionEnvironment : ExecutionEnvironment =
110
+ def getExecutionEnvironmentChangedName : ExecutionEnvironment =
111
111
new ExecutionEnvironment (set.getExecutionEnvironmentChangedName)
112
112
113
113
/** Returns the underlying Java DataSet. */
@@ -707,7 +707,7 @@ class DataSet[T: ClassTag](set: JavaDataSet[T]) {
707
707
def count (): Long = {
708
708
val id = new AbstractID ().toString
709
709
javaSet.output(new CountHelper [T ](id))
710
- val res = getExecutionEnvironment .execute()
710
+ val res = getExecutionEnvironmentChangedName .execute()
711
711
res.getAccumulatorResult[Long ](id)
712
712
}
713
713
@@ -724,11 +724,11 @@ class DataSet[T: ClassTag](set: JavaDataSet[T]) {
724
724
def collect (): Seq [T ] = {
725
725
val id = new AbstractID ().toString
726
726
val serializer =
727
- getType().createSerializer(getExecutionEnvironment .getConfig.getSerializerConfig)
727
+ getType().createSerializer(getExecutionEnvironmentChangedName .getConfig.getSerializerConfig)
728
728
729
729
javaSet.output(new Utils .CollectHelper [T ](id, serializer))
730
730
731
- val res = getExecutionEnvironment .execute()
731
+ val res = getExecutionEnvironmentChangedName .execute()
732
732
733
733
val accResult : java.util.ArrayList [Array [Byte ]] = res.getAccumulatorResult(id)
734
734
You can’t perform that action at this time.
0 commit comments