Skip to content

Commit

Permalink
add implicit converters
Browse files Browse the repository at this point in the history
  • Loading branch information
novakov-alexey committed Dec 17, 2024
1 parent 63b1934 commit c59ab5b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions modules/scala-api/src/main/scala/org/apache/flinkx/api/conv.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package org.apache.flinkx.api

import org.apache.flink.streaming.api.environment.{StreamExecutionEnvironment => JavaEnv}
import org.apache.flink.streaming.api.datastream.{DataStream => JavaStream}

import scala.language.implicitConversions

object conv {
implicit def toJavaEnv(e: StreamExecutionEnvironment): JavaEnv = e.getJavaEnv

implicit def toJavaDataStream[T](d: DataStream[T]): JavaStream[T] = d.javaStream
}

0 comments on commit c59ab5b

Please sign in to comment.