Class ScalaInterop
java.lang.Object
org.apache.beam.runners.spark.structuredstreaming.translation.utils.ScalaInterop
Utilities for easier interoperability with the Spark Scala API.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> scala.collection.immutable.List
<T> concat
(scala.collection.immutable.List<T> a, scala.collection.immutable.List<T> b) static <T> scala.collection.immutable.List
<T> static <T,
V> ScalaInterop.Fun1 <T, V> fun1
(ScalaInterop.Fun1<T, V> fun) static <T1,
T2, V>
ScalaInterop.Fun2<T1, T2, V> fun2
(ScalaInterop.Fun2<T1, T2, V> fun) javaIterator
(scala.collection.Iterator<T> it) JavaIterator
of ScalaIterator
.static <T> scala.collection.Seq
<T> listOf
(T t) scalaIterator
(Iterable<T> iterable) ScalaIterator
of JavaIterable
.scalaIterator
(Iterator<T> it) ScalaIterator
of JavaIterator
.static <T> scala.collection.Seq
<T> seqOf
(T... t) static <T1,
T2> scala.Tuple2 <T1, T2> tuple
(T1 t1, T2 t2)
-
Method Details
-
seqOf
public static <T> scala.collection.Seq<T> seqOf(T... t) -
concat
public static <T> scala.collection.immutable.List<T> concat(scala.collection.immutable.List<T> a, scala.collection.immutable.List<T> b) -
listOf
public static <T> scala.collection.Seq<T> listOf(T t) -
emptyList
public static <T> scala.collection.immutable.List<T> emptyList() -
scalaIterator
public static <T extends @NonNull Object> scala.collection.Iterator<T> scalaIterator(Iterable<T> iterable) ScalaIterator
of JavaIterable
. -
scalaIterator
public static <T extends @NonNull Object> scala.collection.Iterator<T> scalaIterator(Iterator<T> it) ScalaIterator
of JavaIterator
. -
javaIterator
JavaIterator
of ScalaIterator
. -
tuple
public static <T1,T2> scala.Tuple2<T1,T2> tuple(T1 t1, T2 t2) -
replace
-
match
-
fun1
-
fun2
-