public class Tumbling extends Basic
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
protected long |
nextCloseTime |
protected long |
windowLength |
windowCount
aggregation, 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, resetForPartition
getMetadata
public 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)
Scheme
getMetadata
in class Basic
metadataKeys
- The mapping of metadata concepts to their names to get metadata for.Map
of strings to objects of the metadata.public void reset()
Monoidal
public boolean isClosed()
Closable
public boolean isClosedForPartition()
Scheme
isClosedForPartition
in class Basic
public void start()
Scheme
Querier.restart()
.Copyright © 2021. All rights reserved.