Constructor and Description |
---|
GroupAllStrategy(GroupAll aggregation,
BulletConfig config)
Constructor that requires an
Aggregation . |
Modifier and Type | Method and Description |
---|---|
void |
combine(byte[] data)
Combines a serialized piece of data into this Monoid.
|
void |
consume(com.yahoo.bullet.record.BulletRecord data)
Consumes a single
BulletRecord into this Monoid. |
byte[] |
getData()
Get the data serialized as a byte[].
|
List<com.yahoo.bullet.record.BulletRecord> |
getRecords()
Get the data so far as a
List of BulletRecord . |
Clip |
getResult()
Get the data so far as a
Clip . |
void |
reset()
Reset the data so far and make this the identity element for the Monoid with respect to inserting data.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetadata, isClosed
public GroupAllStrategy(GroupAll aggregation, BulletConfig config)
Aggregation
.aggregation
- The Aggregation
that specifies how and what this will compute.config
- The BulletConfig.public void consume(com.yahoo.bullet.record.BulletRecord data)
Monoidal
BulletRecord
into this Monoid.public void combine(byte[] data)
Monoidal
combine
in interface Monoidal
data
- A serialized representation of the data produced by Monoidal.getData()
.public byte[] getData()
Monoidal
public Clip getResult()
Monoidal
Clip
.public List<com.yahoo.bullet.record.BulletRecord> getRecords()
Monoidal
List
of BulletRecord
.getRecords
in interface Monoidal
Copyright © 2021. All rights reserved.