Package stream.nebula.operators
Class WindowOperator
- java.lang.Object
-
- stream.nebula.operators.Operator
-
- stream.nebula.operators.KeyedWindowOperator
-
- stream.nebula.operators.WindowOperator
-
public class WindowOperator extends KeyedWindowOperator
This class allows the specification of window grouping attributes in the fluidQuery
API.It extends the builder pattern of
KeyedWindowOperator
with thebyKey(java.lang.String...)
method.- See Also:
KeyedWindowOperator
-
-
Field Summary
-
Fields inherited from class stream.nebula.operators.Operator
childOperator
-
-
Constructor Summary
Constructors Constructor Description WindowOperator(@NonNull Operator childOperator, @NonNull WindowDefinition windowDefinition, @NonNull Query query)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyedWindowOperator
byKey(@NonNull java.lang.String... keyFields)
Set the stream attribute names on which the window is grouped.-
Methods inherited from class stream.nebula.operators.KeyedWindowOperator
apply, getAggregations, getKeyFields, getWindowDefinition, setKeyFields
-
Methods inherited from class stream.nebula.operators.Operator
getChildOperator
-
-
-
-
Constructor Detail
-
WindowOperator
public WindowOperator(@NonNull Operator childOperator, @NonNull WindowDefinition windowDefinition, @NonNull Query query) throws java.lang.IllegalArgumentException
Delegates to theKeyedWindowOperator(stream.nebula.operators.Operator, stream.nebula.operators.window.WindowDefinition, stream.nebula.runtime.Query)
constructor.- Throws:
java.lang.IllegalArgumentException
-
-
Method Detail
-
byKey
public KeyedWindowOperator byKey(@NonNull java.lang.String... keyFields) throws java.lang.IllegalArgumentException
Set the stream attribute names on which the window is grouped.- Parameters:
keyFields
- A variable number of attribute names.- Throws:
java.lang.IllegalArgumentException
- IfkeyFields
is null.
-
-