thrownewUnsupportedOperationException("Operator "+javaStream.toString+" does not have "+
thrownewUnsupportedOperationException("Operator "+javaStream.toString+" does not have"+
" "+
"parallelism.")
}
...
...
@@ -139,7 +141,8 @@ class DataStream[T](javaStream: JavaStream[T]) {
/**
* Sets the partitioning of the DataStream so that the output is
* partitioned by the selected fields. This setting only effects the how the outputs will be distributed between the parallel instances of the next processing operator.
* partitioned by the selected fields. This setting only effects the how the outputs will be
* distributed between the parallel instances of the next processing operator.
*
*/
defpartitionBy(fields:Int*):DataStream[T]=
...
...
@@ -147,7 +150,8 @@ class DataStream[T](javaStream: JavaStream[T]) {
/**
* Sets the partitioning of the DataStream so that the output is
* partitioned by the selected fields. This setting only effects the how the outputs will be distributed between the parallel instances of the next processing operator.
* partitioned by the selected fields. This setting only effects the how the outputs will be
* distributed between the parallel instances of the next processing operator.
@@ -155,7 +159,8 @@ class DataStream[T](javaStream: JavaStream[T]) {
/**
* Sets the partitioning of the DataStream so that the output is
* partitioned by the given Key. This setting only effects the how the outputs will be distributed between the parallel instances of the next processing operator.
* partitioned by the given Key. This setting only effects the how the outputs will be
* distributed between the parallel instances of the next processing operator.
* Groups the elements of the WindowedDataStream using the given
...
...
@@ -126,12 +127,14 @@ class WindowedDataStream[T](javaStream: JavaWStream[T]) {
/**
* Applies a reduceGroup transformation on the windowed data stream by reducing
* the current window at every trigger. In contrast with the simple binary reduce operator, groupReduce exposes the whole window through the Iterable interface.
* the current window at every trigger. In contrast with the simple binary reduce operator,
* groupReduce exposes the whole window through the Iterable interface.
* </br>
* </br>
* Whenever possible try to use reduce instead of groupReduce for increased efficiency
thrownewNullPointerException("GroupReduce function must not be null.")
}
...
...
@@ -140,12 +143,14 @@ class WindowedDataStream[T](javaStream: JavaWStream[T]) {
/**
* Applies a reduceGroup transformation on the windowed data stream by reducing
* the current window at every trigger. In contrast with the simple binary reduce operator, groupReduce exposes the whole window through the Iterable interface.
* the current window at every trigger. In contrast with the simple binary reduce operator,
* groupReduce exposes the whole window through the Iterable interface.
* </br>
* </br>
* Whenever possible try to use reduce instead of groupReduce for increased efficiency