Modifier and Type | Class and Description |
---|---|
static class |
SlidingRecord.Data |
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
windowCount
aggregation, metadataKeys, window
Constructor and Description |
---|
SlidingRecord(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 |
---|---|
void |
combine(byte[] data)
This combines any data fed to it even if it is
Basic.isClosed() or Basic.isClosedForPartition() . |
void |
consume(com.yahoo.bullet.record.BulletRecord data)
This consumes any data fed to it even if it is
Basic.isClosed() or Basic.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, start
getMetadata
public 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)
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 consume(com.yahoo.bullet.record.BulletRecord data)
Basic
Basic.isClosed()
or Basic.isClosedForPartition()
.public void combine(byte[] data)
Basic
Basic.isClosed()
or Basic.isClosedForPartition()
.public byte[] getData()
Monoidal
public void reset()
Monoidal
public boolean isClosed()
Closable
public boolean isClosedForPartition()
Scheme
isClosedForPartition
in class Basic
Copyright © 2021. All rights reserved.