public class Tumbling extends Basic
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
protected long |
nextCloseTime |
protected long |
windowLength |
windowCountaggregation, metadataKeys, window| Constructor and Description |
|---|
Tumbling(Strategy aggregation,
Window window,
BulletConfig config)
Creates an instance of this windowing scheme with the provided
Strategy and BulletConfig. |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getMetadata(Map<String,String> metadataKeys)
Return any metadata for the windowing scheme with the given configured names for the metadata concepts.
|
boolean |
isClosed()
Returns true if this is currently closed.
|
boolean |
isClosedForPartition()
Returns true if this window is closed when operating in partition mode.
|
protected String |
name()
Gets the name of this windowing scheme.
|
void |
reset()
Reset the data so far and make this the identity element for the Monoid with respect to inserting data.
|
void |
start()
Readies the window for querying.
|
combine, consume, count, getData, getRecords, getResult, resetForPartitiongetMetadatapublic static final String NAME
protected long nextCloseTime
protected long windowLength
public Tumbling(Strategy aggregation, Window window, BulletConfig config)
Strategy and BulletConfig.aggregation - The non-null initialized aggregation strategy that this window will operate.window - The initialized, configured window to use.config - The validated config to use.protected Map<String,Object> getMetadata(Map<String,String> metadataKeys)
SchemegetMetadata in class BasicmetadataKeys - The mapping of metadata concepts to their names to get metadata for.Map of strings to objects of the metadata.public void reset()
Monoidalpublic boolean isClosed()
Closablepublic boolean isClosedForPartition()
SchemeisClosedForPartition in class Basicpublic void start()
SchemeQuerier.restart().Copyright © 2021. All rights reserved.