public class Stats extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<Long>,org.apache.beam.sdk.values.PCollection<Stats.StatsOutput>>
Currently only operates on collections of Long
values
Modifier and Type | Class and Description |
---|---|
static class |
Stats.StatsCombiner
Combine.CombineFn for performing statistics operations on a collection of values |
static class |
Stats.StatsOutput
Output of statistics transform
|
Modifier and Type | Method and Description |
---|---|
org.apache.beam.sdk.values.PCollection<Stats.StatsOutput> |
expand(org.apache.beam.sdk.values.PCollection<Long> input) |
static org.apache.beam.sdk.values.PCollectionView<Stats.StatsOutput> |
getView(org.apache.beam.sdk.values.PCollection<Long> input)
Execute the transform returning a
PCollectionView suitable for use as a side input |
public static org.apache.beam.sdk.values.PCollectionView<Stats.StatsOutput> getView(org.apache.beam.sdk.values.PCollection<Long> input)
PCollectionView
suitable for use as a side inputinput
- Input data setPCollectionView
representing results of analysispublic org.apache.beam.sdk.values.PCollection<Stats.StatsOutput> expand(org.apache.beam.sdk.values.PCollection<Long> input)
expand
in class org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<Long>,org.apache.beam.sdk.values.PCollection<Stats.StatsOutput>>
Copyright © 2022. All rights reserved.