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 WindowSpec
public Duration getSize()
public Duration getOffset()
public boolean isAlignedWindow()
WindowSpec
See more details about aligned window and unaligned window in WindowAggOperator
.
isAlignedWindow
in interface WindowSpec
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.