class OnDataStream[T] extends AnyRef
Wraps a data stream, allowing to use anonymous partial functions to perform extraction of items in a tuple, case class instance or collection
- T
The type of the data stream items
- Alphabetic
- By Inheritance
- OnDataStream
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
OnDataStream(stream: DataStream[T])
- stream
The wrapped data stream
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
filterWith(fun: (T) ⇒ Boolean): DataStream[T]
Applies a predicate
funto each item of the stream, keeping only those for which the predicate holdsApplies a predicate
funto each item of the stream, keeping only those for which the predicate holds- fun
The predicate to be tested on each item
- returns
A dataset of R
- Annotations
- @PublicEvolving()
-
def
flatMapWith[R](fun: (T) ⇒ TraversableOnce[R])(implicit arg0: TypeInformation[R]): DataStream[R]
Applies a function
funto each item of the stream, producing a collection of items that will be flattened in the resulting streamApplies a function
funto each item of the stream, producing a collection of items that will be flattened in the resulting stream- R
The type of the items in the returned stream
- fun
The function to be applied to each item
- returns
A dataset of R
- Annotations
- @PublicEvolving()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
keyingBy[K](fun: (T) ⇒ K)(implicit arg0: TypeInformation[K]): KeyedStream[T, K]
Keys the items according to a keying function
funKeys the items according to a keying function
fun- K
The type of the key, for which type information must be known
- fun
The keying function
- returns
A stream of Ts keyed by Ks
- Annotations
- @PublicEvolving()
-
def
mapWith[R](fun: (T) ⇒ R)(implicit arg0: TypeInformation[R]): DataStream[R]
Applies a function
funto each item of the streamApplies a function
funto each item of the stream- R
The type of the items in the returned stream
- fun
The function to be applied to each item
- returns
A dataset of R
- Annotations
- @PublicEvolving()
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated