public class DslWindowParams extends Object
DslWindowParams
is a wrapper class for all parameters that function
as inputs to DslStoreSuppliers.windowStore(DslWindowParams)
.Constructor and Description |
---|
DslWindowParams(String name,
Duration retentionPeriod,
Duration windowSize,
boolean retainDuplicates,
EmitStrategy emitStrategy,
boolean isSlidingWindow,
boolean isTimestamped) |
Modifier and Type | Method and Description |
---|---|
EmitStrategy |
emitStrategy() |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isSlidingWindow() |
boolean |
isTimestamped() |
String |
name() |
boolean |
retainDuplicates() |
Duration |
retentionPeriod() |
String |
toString() |
Duration |
windowSize() |
public DslWindowParams(String name, Duration retentionPeriod, Duration windowSize, boolean retainDuplicates, EmitStrategy emitStrategy, boolean isSlidingWindow, boolean isTimestamped)
name
- name of the store (cannot be null
)retentionPeriod
- length of time to retain data in the store (cannot be negative)
(note that the retention period must be at least long enough to contain the
windowed data's entire life cycle, from window-start through window-end,
and for the entire grace period)windowSize
- size of the windows (cannot be negative)retainDuplicates
- whether to retain duplicates. Turning this on will automatically disable
caching and means that null values will be ignored.emitStrategy
- defines how to emit resultsisSlidingWindow
- whether the requested store is a sliding windowisTimestamped
- whether the requested store should be timestamped (see TimestampedWindowStore
public String name()
public Duration retentionPeriod()
public Duration windowSize()
public boolean retainDuplicates()
public EmitStrategy emitStrategy()
public boolean isSlidingWindow()
public boolean isTimestamped()