public class SessionWindow extends Window
For streaming tables call on('rowtime)
to specify grouping by event-time. Otherwise rows are
grouped by processing-time.
Constructor and Description |
---|
SessionWindow(Expression gap) |
SessionWindow(String gap)
Session window.
|
Modifier and Type | Method and Description |
---|---|
SessionEventTimeWindow |
on(Expression timeField)
Specifies the time attribute on which rows are grouped.
|
SessionEventTimeWindow |
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 SessionWindow(Expression gap)
public SessionWindow(String gap)
For streaming tables call on('rowtime)
to specify grouping by event-time. Otherwise rows
are grouped by processing-time.
gap
- the time interval of inactivity before a window is closed.public SessionEventTimeWindow 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 SessionEventTimeWindow 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.