Class BaseBroadcastProcessFunction.ReadOnlyContext

    • Constructor Detail

      • ReadOnlyContext

        public ReadOnlyContext()
    • Method Detail

      • getBroadcastState

        public abstract <K,​V> ReadOnlyBroadcastState<K,​V> getBroadcastState​(MapStateDescriptor<K,​V> stateDescriptor)
        Fetches a read-only view of the broadcast state with the specified name.
        Parameters:
        stateDescriptor - the MapStateDescriptor of the state to be fetched.
        Returns:
        The required read-only view of the broadcast state.
      • timestamp

        public abstract Long timestamp()
        Timestamp of the element currently being processed or timestamp of a firing timer.

        This might be null, depending on the stream's watermark strategy.

      • output

        public abstract <X> void output​(OutputTag<X> outputTag,
                                        X value)
        Emits a record to the side output identified by the OutputTag.
        Parameters:
        outputTag - the OutputTag that identifies the side output to emit to.
        value - The record to emit.
      • currentProcessingTime

        public abstract long currentProcessingTime()
        Returns the current processing time.
      • currentWatermark

        public abstract long currentWatermark()
        Returns the current event-time watermark.