public class SessionWithGap extends Object
For streaming tables you can specify grouping by a event-time or processing-time attribute.
For batch tables you can specify grouping on a timestamp or long attribute.
param: gap the time interval of inactivity before a window is closed.
Constructor and Description |
---|
SessionWithGap(Expression gap) |
SessionWithGap(String gap)
Session window.
|
Modifier and Type | Method and Description |
---|---|
SessionWithGapOnTime |
on(Expression timeField)
Specifies the time attribute on which rows are grouped.
|
SessionWithGapOnTime |
on(String timeField)
Specifies the time attribute on which rows are grouped.
|
public SessionWithGap(Expression gap)
public SessionWithGap(String gap)
For streaming tables you can specify grouping by a event-time or processing-time attribute.
For batch tables you can specify grouping on a timestamp or long attribute.
gap
- the time interval of inactivity before a window is closed.public SessionWithGapOnTime on(Expression timeField)
For streaming tables you can specify grouping by a event-time or processing-time attribute.
For batch tables you can specify grouping on a timestamp or long attribute.
timeField
- time attribute for streaming and batch tablespublic SessionWithGapOnTime on(String timeField)
For streaming tables you can specify grouping by a event-time or processing-time attribute.
For batch tables you can specify grouping on a timestamp or long attribute.
timeField
- time attribute for streaming and batch tablesCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.