public class UniqueValues extends Object implements BasicAggregationFunction, CombinableAggregationFunction<Set<String>>
| Constructor and Description |
|---|
UniqueValues() |
| 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
|
Set<String> |
deserialize(byte[] valueBytes)
Deserialize a given value appropriately
|
Set<String> |
retrieveAggregation()
Retrieve a combined aggregation
|
public Set<String> retrieveAggregation()
CombinableAggregationFunctionretrieveAggregation in interface CombinableAggregationFunction<Set<String>>public Set<String> deserialize(byte[] valueBytes)
BasicAggregationFunctiondeserialize in interface BasicAggregationFunctionpublic void combine(byte[] value)
CombinableAggregationFunctioncombine in interface CombinableAggregationFunction<Set<String>>public void add(DataQualityWritable value)
BasicAggregationFunctionadd in interface BasicAggregationFunctionpublic byte[] aggregate()
BasicAggregationFunctionaggregate in interface BasicAggregationFunctionCopyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.