Class SparkCombineFn<InputT,​ValueT,​AccumT,​OutputT>

  • All Implemented Interfaces:
    java.io.Serializable

    public class SparkCombineFn<InputT,​ValueT,​AccumT,​OutputT>
    extends java.lang.Object
    implements java.io.Serializable
    A CombineFnBase.GlobalCombineFn with a CombineWithContext.Context for the SparkRunner.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.stream.Stream<org.apache.beam.sdk.util.WindowedValue<OutputT>> extractOutputStream​(SparkCombineFn.WindowedAccumulator<?,​?,​AccumT,​?> accumulator)
      Extracts the stream of accumulated values.
      static <InputT,​AccumT,​OutputT>
      SparkCombineFn<InputT,​InputT,​AccumT,​OutputT>
      globally​(org.apache.beam.sdk.transforms.CombineWithContext.CombineFnWithContext<InputT,​AccumT,​OutputT> combineFn, org.apache.beam.runners.core.construction.SerializablePipelineOptions options, java.util.Map<org.apache.beam.sdk.values.TupleTag<?>,​org.apache.beam.sdk.values.KV<org.apache.beam.sdk.values.WindowingStrategy<?,​?>,​SideInputBroadcast<?>>> sideInputs, org.apache.beam.sdk.values.WindowingStrategy<?,​?> windowingStrategy)  
      static <K,​V,​AccumT,​OutputT>
      SparkCombineFn<org.apache.beam.sdk.values.KV<K,​V>,​V,​AccumT,​OutputT>
      keyed​(org.apache.beam.sdk.transforms.CombineWithContext.CombineFnWithContext<V,​AccumT,​OutputT> combineFn, org.apache.beam.runners.core.construction.SerializablePipelineOptions options, java.util.Map<org.apache.beam.sdk.values.TupleTag<?>,​org.apache.beam.sdk.values.KV<org.apache.beam.sdk.values.WindowingStrategy<?,​?>,​SideInputBroadcast<?>>> sideInputs, org.apache.beam.sdk.values.WindowingStrategy<?,​?> windowingStrategy)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • keyed

        public static <K,​V,​AccumT,​OutputT> SparkCombineFn<org.apache.beam.sdk.values.KV<K,​V>,​V,​AccumT,​OutputT> keyed​(org.apache.beam.sdk.transforms.CombineWithContext.CombineFnWithContext<V,​AccumT,​OutputT> combineFn,
                                                                                                                                                               org.apache.beam.runners.core.construction.SerializablePipelineOptions options,
                                                                                                                                                               java.util.Map<org.apache.beam.sdk.values.TupleTag<?>,​org.apache.beam.sdk.values.KV<org.apache.beam.sdk.values.WindowingStrategy<?,​?>,​SideInputBroadcast<?>>> sideInputs,
                                                                                                                                                               org.apache.beam.sdk.values.WindowingStrategy<?,​?> windowingStrategy)
      • globally

        public static <InputT,​AccumT,​OutputT> SparkCombineFn<InputT,​InputT,​AccumT,​OutputT> globally​(org.apache.beam.sdk.transforms.CombineWithContext.CombineFnWithContext<InputT,​AccumT,​OutputT> combineFn,
                                                                                                                                  org.apache.beam.runners.core.construction.SerializablePipelineOptions options,
                                                                                                                                  java.util.Map<org.apache.beam.sdk.values.TupleTag<?>,​org.apache.beam.sdk.values.KV<org.apache.beam.sdk.values.WindowingStrategy<?,​?>,​SideInputBroadcast<?>>> sideInputs,
                                                                                                                                  org.apache.beam.sdk.values.WindowingStrategy<?,​?> windowingStrategy)
      • extractOutputStream

        public java.util.stream.Stream<org.apache.beam.sdk.util.WindowedValue<OutputT>> extractOutputStream​(SparkCombineFn.WindowedAccumulator<?,​?,​AccumT,​?> accumulator)
        Extracts the stream of accumulated values.