Class SideInputInitializer<ViewT>

  • All Implemented Interfaces:
    org.apache.flink.api.common.functions.BroadcastVariableInitializer<org.apache.beam.sdk.values.WindowedValue<?>,​java.util.Map<org.apache.beam.sdk.transforms.windowing.BoundedWindow,​ViewT>>

    public class SideInputInitializer<ViewT>
    extends java.lang.Object
    implements org.apache.flink.api.common.functions.BroadcastVariableInitializer<org.apache.beam.sdk.values.WindowedValue<?>,​java.util.Map<org.apache.beam.sdk.transforms.windowing.BoundedWindow,​ViewT>>
    BroadcastVariableInitializer that initializes the broadcast input as a Map from window to side input.
    • Constructor Summary

      Constructors 
      Constructor Description
      SideInputInitializer​(org.apache.beam.sdk.values.PCollectionView<ViewT> view)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<org.apache.beam.sdk.transforms.windowing.BoundedWindow,​ViewT> initializeBroadcastVariable​(java.lang.Iterable<org.apache.beam.sdk.values.WindowedValue<?>> inputValues)  
      • Methods inherited from class java.lang.Object

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

      • SideInputInitializer

        public SideInputInitializer​(org.apache.beam.sdk.values.PCollectionView<ViewT> view)
    • Method Detail

      • initializeBroadcastVariable

        public java.util.Map<org.apache.beam.sdk.transforms.windowing.BoundedWindow,​ViewT> initializeBroadcastVariable​(java.lang.Iterable<org.apache.beam.sdk.values.WindowedValue<?>> inputValues)
        Specified by:
        initializeBroadcastVariable in interface org.apache.flink.api.common.functions.BroadcastVariableInitializer<org.apache.beam.sdk.values.WindowedValue<?>,​java.util.Map<org.apache.beam.sdk.transforms.windowing.BoundedWindow,​ViewT>>