public class TumblingWindowSpec extends Object implements WindowSpec
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD_NAME_OFFSET |
static String |
FIELD_NAME_SIZE |
| Constructor and Description |
|---|
TumblingWindowSpec(Duration size,
Duration offset) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Duration |
getOffset() |
Duration |
getSize() |
int |
hashCode() |
boolean |
isAlignedWindow()
Return true if the window is aligned.
|
String |
toString() |
String |
toSummaryString(String windowing,
String[] inputFieldNames) |
public static final String FIELD_NAME_SIZE
public static final String FIELD_NAME_OFFSET
public String toSummaryString(String windowing, String[] inputFieldNames)
toSummaryString in interface WindowSpecpublic Duration getSize()
public Duration getOffset()
public boolean isAlignedWindow()
WindowSpecSee more details about aligned window and unaligned window in WindowAggOperator.
isAlignedWindow in interface WindowSpecCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.