public class FrequentItemsSketchingStrategy extends SketchingStrategy<FrequentItemsSketch>
Modifier and Type | Field and Description |
---|---|
static String |
NO_FALSE_NEGATIVES |
static String |
NO_FALSE_POSITIVES |
fields, metadataKeys, separator, sketch
Constructor and Description |
---|
FrequentItemsSketchingStrategy(TopK aggregation,
BulletConfig config)
Constructor that requires an
Aggregation and a BulletConfig configuration. |
Modifier and Type | Method and Description |
---|---|
void |
consume(com.yahoo.bullet.record.BulletRecord data)
Consumes a single
BulletRecord into this Monoid. |
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 . |
combine, getData, getMetadata, reset
public static final String NO_FALSE_NEGATIVES
public static final String NO_FALSE_POSITIVES
public FrequentItemsSketchingStrategy(TopK aggregation, BulletConfig config)
Aggregation
and a BulletConfig
configuration.aggregation
- An Aggregation
with valid fields and attributes for this aggregation type.config
- The config that has relevant configs for this strategy.public void consume(com.yahoo.bullet.record.BulletRecord data)
Monoidal
BulletRecord
into this Monoid.data
- The BulletRecord
to consume.public Clip getResult()
Monoidal
Clip
.getResult
in interface Monoidal
getResult
in class SketchingStrategy<FrequentItemsSketch>
Clip
representing the data and the metadata so far.public List<com.yahoo.bullet.record.BulletRecord> getRecords()
Monoidal
List
of BulletRecord
.getRecords
in interface Monoidal
getRecords
in class SketchingStrategy<FrequentItemsSketch>
Copyright © 2021. All rights reserved.