public class QuantileSketchingStrategy extends SketchingStrategy<QuantileSketch>
Strategy
uses QuantileSketch
to find distributions of a numeric field. Based on the size
configured for the sketch, the normalized rank error can be determined and tightly bound.fields, metadataKeys, separator, sketch
Constructor and Description |
---|
QuantileSketchingStrategy(Distribution 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. |
combine, getData, getMetadata, getRecords, getResult, reset
public QuantileSketchingStrategy(Distribution 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.Copyright © 2021. All rights reserved.