public class TumblingWindow extends Window
For streaming tables call on('rowtime)
to specify grouping by event-time. Otherwise rows are
grouped by processing-time.
Constructor and Description |
---|
TumblingWindow(Expression size) |
TumblingWindow(String size)
Tumbling window.
|
Modifier and Type | Method and Description |
---|---|
TumblingEventTimeWindow |
on(Expression timeField)
Specifies the time attribute on which rows are grouped.
|
TumblingEventTimeWindow |
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 TumblingWindow(Expression size)
public TumblingWindow(String size)
For streaming tables call on('rowtime)
to specify grouping by event-time. Otherwise rows
are grouped by processing-time.
size
- the size of the window either as time or row-count interval.public TumblingEventTimeWindow 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 TumblingEventTimeWindow 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.