K - type of the keys mapping the elementsV - type of the values being combined per keypublic abstract static class ApproximateDistinct.PerKeyDistinct<K,V> extends PTransform<PCollection<KV<K,V>>,PCollection<KV<K,Long>>>
ApproximateDistinct.perKey().name| Constructor and Description |
|---|
PerKeyDistinct() |
| Modifier and Type | Method and Description |
|---|---|
PCollection<KV<K,Long>> |
expand(PCollection<KV<K,V>> input) |
ApproximateDistinct.PerKeyDistinct<K,V> |
withPrecision(int p) |
ApproximateDistinct.PerKeyDistinct<K,V> |
withSparsePrecision(int sp) |
getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, populateDisplayData, toString, validatepublic ApproximateDistinct.PerKeyDistinct<K,V> withPrecision(int p)
public ApproximateDistinct.PerKeyDistinct<K,V> withSparsePrecision(int sp)
public PCollection<KV<K,Long>> expand(PCollection<KV<K,V>> input)
expand in class PTransform<PCollection<KV<K,V>>,PCollection<KV<K,Long>>>Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.