Class HllCount.Init

java.lang.Object
org.apache.beam.sdk.extensions.zetasketch.HllCount.Init
Enclosing class:
HllCount

public static final class HllCount.Init extends Object
Provides PTransforms to aggregate inputs into HLL++ sketches. The four supported input types are Integer, Long, String, and byte[].

Sketches are represented using the byte[] type. Sketches of the same type can be merged into a new sketch using HllCount.MergePartial. Estimated count of distinct elements can be extracted from sketches using HllCount.Extract.

An "empty sketch" represented by an byte array of length 0 is returned if the input PCollection is empty.

Corresponds to the HLL_COUNT.INIT(input [, precision]) function in BigQuery.