public class DiscreteValuesHistogram extends Object implements BasicAggregationFunction, CombinableAggregationFunction<Map<String,Integer>>
| Constructor and Description |
|---|
DiscreteValuesHistogram() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(DataQualityWritable value)
Incrementally add values to the aggregation
|
byte[] |
aggregate()
Return the aggregation accumulated using add() in the form of a byte[]
|
void |
combine(byte[] value)
Combine existing aggregations one-by-one
|
Map<String,Integer> |
deserialize(byte[] valueBytes)
Deserialize a given value appropriately
|
Map<String,Integer> |
retrieveAggregation()
Retrieve a combined aggregation
|
public void combine(byte[] value)
CombinableAggregationFunctioncombine in interface CombinableAggregationFunction<Map<String,Integer>>public Map<String,Integer> deserialize(byte[] valueBytes)
BasicAggregationFunctiondeserialize in interface BasicAggregationFunctionpublic Map<String,Integer> retrieveAggregation()
CombinableAggregationFunctionretrieveAggregation in interface CombinableAggregationFunction<Map<String,Integer>>public void add(DataQualityWritable value)
BasicAggregationFunctionadd in interface BasicAggregationFunctionpublic byte[] aggregate()
BasicAggregationFunctionaggregate in interface BasicAggregationFunctionCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.