Class DslWindowParams
java.lang.Object
org.apache.kafka.streams.state.DslWindowParams
DslWindowParams is a wrapper class for all parameters that function as inputs to DslStoreSuppliers.windowStore(DslWindowParams).Constructor Summary
ConstructorsConstructorDescriptionDslWindowParams(String name, Duration retentionPeriod, Duration windowSize, boolean retainDuplicates, EmitStrategy emitStrategy, boolean isSlidingWindow, boolean isTimestamped) Deprecated.Since 4.3.DslWindowParams(String name, Duration retentionPeriod, Duration windowSize, boolean retainDuplicates, EmitStrategy emitStrategy, boolean isSlidingWindow, DslStoreFormat dslStoreFormat) Method Summary
Constructor Details
DslWindowParams
@Deprecatedpublic DslWindowParams(String name, Duration retentionPeriod, Duration windowSize, boolean retainDuplicates, EmitStrategy emitStrategy, boolean isSlidingWindow, boolean isTimestamped) Deprecated.Since 4.3. UseDslWindowParams(String, Duration, Duration, boolean, EmitStrategy, boolean, DslStoreFormat)Params(String, DslStoreFormat)} instead.- Parameters:
name- name of the store (cannot benull)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 (seeTimestampedWindowStore
DslWindowParams
public DslWindowParams(String name, Duration retentionPeriod, Duration windowSize, boolean retainDuplicates, EmitStrategy emitStrategy, boolean isSlidingWindow, DslStoreFormat dslStoreFormat) - Parameters:
name- name of the store (cannot benull)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 windowdslStoreFormat- indicate the dsl store format (seeDslStoreFormat
Method Details
name
retentionPeriod
windowSize
retainDuplicates
public boolean retainDuplicates()emitStrategy
isSlidingWindow
public boolean isSlidingWindow()isTimestamped
Deprecated.Since 4.3. UsedslStoreFormat()instead to check the store format.- Returns:
trueif the store format isDslStoreFormat.TIMESTAMPED,falseotherwise
dslStoreFormat
Returns the store format for this window store. `- Returns:
- the
DslStoreFormatspecifying whether to use plain, timestamped, or headers-aware stores
equals
hashCode
toString