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  Aggregationand aBulletConfigconfiguration. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | consume(com.yahoo.bullet.record.BulletRecord data)Consumes a single  BulletRecordinto this Monoid. | 
| List<com.yahoo.bullet.record.BulletRecord> | getRecords()Get the data so far as a  ListofBulletRecord. | 
| Clip | getResult()Get the data so far as a  Clip. | 
combine, getData, getMetadata, resetpublic 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)
MonoidalBulletRecord into this Monoid.data - The BulletRecord to consume.public Clip getResult()
MonoidalClip.getResult in interface MonoidalgetResult in class SketchingStrategy<FrequentItemsSketch>Clip representing the data and the metadata so far.public List<com.yahoo.bullet.record.BulletRecord> getRecords()
MonoidalList of BulletRecord.getRecords in interface MonoidalgetRecords in class SketchingStrategy<FrequentItemsSketch>Copyright © 2021. All rights reserved.