public class SessionWindowSpec extends Object implements WindowSpec
Modifier and Type | Field and Description |
---|---|
static String |
FIELD_NAME_GAP |
static String |
FIELD_NAME_PARTITION_KEYS |
Constructor and Description |
---|
SessionWindowSpec(java.time.Duration gap,
int[] partitionKeyIndices) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
java.time.Duration |
getGap() |
int[] |
getPartitionKeyIndices() |
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_GAP
public static final String FIELD_NAME_PARTITION_KEYS
public SessionWindowSpec(java.time.Duration gap, int[] partitionKeyIndices)
public String toSummaryString(String windowing, String[] inputFieldNames)
toSummaryString
in interface WindowSpec
public java.time.Duration getGap()
public int[] getPartitionKeyIndices()
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.