Class SparkAssignWindowFn<T,​W extends org.apache.beam.sdk.transforms.windowing.BoundedWindow>

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.spark.api.java.function.Function<org.apache.beam.sdk.util.WindowedValue<T>,​org.apache.beam.sdk.util.WindowedValue<T>>

    public class SparkAssignWindowFn<T,​W extends org.apache.beam.sdk.transforms.windowing.BoundedWindow>
    extends java.lang.Object
    implements org.apache.spark.api.java.function.Function<org.apache.beam.sdk.util.WindowedValue<T>,​org.apache.beam.sdk.util.WindowedValue<T>>
    An implementation of Window.Assign for the Spark runner.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      SparkAssignWindowFn​(org.apache.beam.sdk.transforms.windowing.WindowFn<? super T,​W> fn)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.beam.sdk.util.WindowedValue<T> call​(org.apache.beam.sdk.util.WindowedValue<T> windowedValue)  
      • Methods inherited from class java.lang.Object

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

      • SparkAssignWindowFn

        public SparkAssignWindowFn​(org.apache.beam.sdk.transforms.windowing.WindowFn<? super T,​W> fn)
    • Method Detail

      • call

        public org.apache.beam.sdk.util.WindowedValue<T> call​(org.apache.beam.sdk.util.WindowedValue<T> windowedValue)
                                                       throws java.lang.Exception
        Specified by:
        call in interface org.apache.spark.api.java.function.Function<T,​W extends org.apache.beam.sdk.transforms.windowing.BoundedWindow>
        Throws:
        java.lang.Exception