T - the type of the elements in the input PCollectionpublic abstract static class ApproximateCountDistinct.Globally<T>
extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<T>,org.apache.beam.sdk.values.PCollection<java.lang.Long>>
PTransform for estimating the number of distinct elements in a PCollection.| Modifier and Type | Class and Description |
|---|---|
static class |
ApproximateCountDistinct.Globally.Builder<T> |
| Constructor and Description |
|---|
Globally() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.beam.sdk.values.PCollection<java.lang.Long> |
expand(org.apache.beam.sdk.values.PCollection<T> input) |
abstract org.apache.beam.sdk.transforms.Contextful<org.apache.beam.sdk.transforms.Contextful.Fn<T,java.lang.Long>> |
getMapping() |
abstract int |
getPrecision() |
void |
populateDisplayData(org.apache.beam.sdk.transforms.display.DisplayData.Builder builder) |
abstract ApproximateCountDistinct.Globally.Builder<T> |
toBuilder() |
ApproximateCountDistinct.Globally<T> |
via(org.apache.beam.sdk.transforms.ProcessFunction<T,java.lang.Long> fn) |
<V> ApproximateCountDistinct.Globally<V> |
withPercision(java.lang.Integer withPercision) |
public abstract int getPrecision()
public abstract ApproximateCountDistinct.Globally.Builder<T> toBuilder()
@Nullable public abstract org.apache.beam.sdk.transforms.Contextful<org.apache.beam.sdk.transforms.Contextful.Fn<T,java.lang.Long>> getMapping()
public ApproximateCountDistinct.Globally<T> via(org.apache.beam.sdk.transforms.ProcessFunction<T,java.lang.Long> fn)
public <V> ApproximateCountDistinct.Globally<V> withPercision(java.lang.Integer withPercision)
public org.apache.beam.sdk.values.PCollection<java.lang.Long> expand(org.apache.beam.sdk.values.PCollection<T> input)
expand in class org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<T>,org.apache.beam.sdk.values.PCollection<java.lang.Long>>public void populateDisplayData(org.apache.beam.sdk.transforms.display.DisplayData.Builder builder)
populateDisplayData in interface org.apache.beam.sdk.transforms.display.HasDisplayDatapopulateDisplayData in class org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<T>,org.apache.beam.sdk.values.PCollection<java.lang.Long>>