Class FileBasedSink.DynamicDestinations<UserT,​DestinationT,​OutputT>

    • Constructor Detail

      • DynamicDestinations

        public DynamicDestinations()
    • Method Detail

      • getSideInputs

        public java.util.List<PCollectionView<?>> getSideInputs()
        Override to specify that this object needs access to one or more side inputs. This side inputs must be globally windowed, as they will be accessed from the global window.
      • sideInput

        protected final <SideInputT> SideInputT sideInput​(PCollectionView<SideInputT> view)
        Returns the value of a given side input. The view must be present in getSideInputs().
      • formatRecord

        public abstract OutputT formatRecord​(UserT record)
        Convert an input record type into the output type.
      • getDestination

        public abstract DestinationT getDestination​(UserT element)
        Returns an object that represents at a high level the destination being written to. May not return null. A destination must have deterministic hash and equality methods defined.
      • getDefaultDestination

        public abstract DestinationT getDefaultDestination()
        Returns the default destination. This is used for collections that have no elements as the destination to write empty files to.