InputT - the type of the elements in the input PCollectionpublic static class SketchFrequencies.CountMinSketchFn<InputT> extends Combine.CombineFn<InputT,SketchFrequencies.Sketch<InputT>,SketchFrequencies.Sketch<InputT>>
Combine.CombineFn of SketchFrequencies transforms.apply, compact, defaultValue, getOutputTypepublic static <InputT> SketchFrequencies.CountMinSketchFn<InputT> create(Coder<InputT> coder)
SketchFrequencies.CountMinSketchFn combiner with the given input coder. coder - the coder that encodes the elements' typepublic SketchFrequencies.CountMinSketchFn<InputT> withAccuracy(double epsilon, double confidence)
SketchFrequencies.CountMinSketchFn combiner with new precision accuracy parameters
epsilon and confidence.
Keep in mind that the lower the epsilon value, the greater the width,
and the greater the confidence, the greater the depth.
epsilon - the error relative to the total number of distinct elementsconfidence - the confidence in the result to not exceed the relative errorpublic SketchFrequencies.Sketch<InputT> createAccumulator()
createAccumulator in class Combine.CombineFn<InputT,SketchFrequencies.Sketch<InputT>,SketchFrequencies.Sketch<InputT>>public SketchFrequencies.Sketch<InputT> addInput(SketchFrequencies.Sketch<InputT> accumulator, InputT element)
addInput in class Combine.CombineFn<InputT,SketchFrequencies.Sketch<InputT>,SketchFrequencies.Sketch<InputT>>public SketchFrequencies.Sketch<InputT> mergeAccumulators(Iterable<SketchFrequencies.Sketch<InputT>> accumulators)
mergeAccumulators in class Combine.CombineFn<InputT,SketchFrequencies.Sketch<InputT>,SketchFrequencies.Sketch<InputT>>public SketchFrequencies.Sketch<InputT> extractOutput(SketchFrequencies.Sketch<InputT> accumulator)
extractOutput in class Combine.CombineFn<InputT,SketchFrequencies.Sketch<InputT>,SketchFrequencies.Sketch<InputT>>public Coder<SketchFrequencies.Sketch<InputT>> getAccumulatorCoder(CoderRegistry registry, Coder inputCoder)
getAccumulatorCoder in interface CombineFnBase.GlobalCombineFn<InputT,SketchFrequencies.Sketch<InputT>,SketchFrequencies.Sketch<InputT>>getAccumulatorCoder in class Combine.CombineFn<InputT,SketchFrequencies.Sketch<InputT>,SketchFrequencies.Sketch<InputT>>public void populateDisplayData(DisplayData.Builder builder)
populateDisplayData in interface HasDisplayDatapopulateDisplayData in class Combine.CombineFn<InputT,SketchFrequencies.Sketch<InputT>,SketchFrequencies.Sketch<InputT>>Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.