| Modifier and Type | Class and Description | 
|---|---|
| static class  | SlidingRecord.Data | 
| Modifier and Type | Field and Description | 
|---|---|
| static String | NAME | 
windowCountaggregation, metadataKeys, window| Constructor and Description | 
|---|
| SlidingRecord(Strategy aggregation,
             Window window,
             BulletConfig config)Creates an instance of this windowing scheme with the provided  StrategyandBulletConfig. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | combine(byte[] data)This combines any data fed to it even if it is  Basic.isClosed()orBasic.isClosedForPartition(). | 
| void | consume(com.yahoo.bullet.record.BulletRecord data)This consumes any data fed to it even if it is  Basic.isClosed()orBasic.isClosedForPartition(). | 
| byte[] | getData()Get the data serialized as a byte[]. | 
| 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. | 
count, getRecords, getResult, resetForPartition, startgetMetadatapublic static String NAME
public SlidingRecord(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 consume(com.yahoo.bullet.record.BulletRecord data)
BasicBasic.isClosed() or Basic.isClosedForPartition().public void combine(byte[] data)
BasicBasic.isClosed() or Basic.isClosedForPartition().public byte[] getData()
Monoidalpublic void reset()
Monoidalpublic boolean isClosed()
Closablepublic boolean isClosedForPartition()
SchemeisClosedForPartition in class BasicCopyright © 2021. All rights reserved.