public class SlidingWindow extends Window
For streaming tables call on('rowtime)
to specify grouping by event-time. Otherwise rows are
grouped by processing-time.
Constructor and Description |
---|
SlidingWindow(Expression size,
Expression slide) |
Modifier and Type | Method and Description |
---|---|
SlidingEventTimeWindow |
on(Expression timeField)
Specifies the time attribute on which rows are grouped.
|
SlidingEventTimeWindow |
on(String timeField)
Specifies the time attribute on which rows are grouped.
|
LogicalWindow |
toLogicalWindow()
Converts an API class to a logical window for planning.
|
public SlidingWindow(Expression size, Expression slide)
public SlidingEventTimeWindow on(Expression timeField)
For streaming tables call on('rowtime)
to specify grouping by event-time. Otherwise rows
are grouped by processing-time.
For batch tables, refer to a timestamp or long attribute.
timeField
- time mode for streaming tables and time attribute for batch tablespublic SlidingEventTimeWindow on(String timeField)
For streaming tables call on('rowtime)
to specify grouping by event-time. Otherwise rows
are grouped by processing-time.
For batch tables, refer to a timestamp or long attribute.
timeField
- time mode for streaming tables and time attribute for batch tablespublic LogicalWindow toLogicalWindow()
Window
toLogicalWindow
in class Window
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.