Class StreamRecordQueueEntry<OUT>

    • Constructor Detail

      • StreamRecordQueueEntry

        public StreamRecordQueueEntry​(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<?> inputRecord)
    • Method Detail

      • isDone

        public boolean isDone()
        Description copied from interface: StreamElementQueueEntry
        True if the stream element queue entry has been completed; otherwise false.
        Specified by:
        isDone in interface StreamElementQueueEntry<OUT>
        Returns:
        True if the stream element queue entry has been completed; otherwise false.
      • getInputElement

        @Nonnull
        public org.apache.flink.streaming.runtime.streamrecord.StreamRecord<?> getInputElement()
        Description copied from interface: StreamElementQueueEntry
        The input element for this queue entry, for which the calculation is performed asynchronously.
        Specified by:
        getInputElement in interface StreamElementQueueEntry<OUT>
        Returns:
        the input element.
      • emitResult

        public void emitResult​(org.apache.flink.streaming.api.operators.TimestampedCollector<OUT> output)
        Description copied from interface: StreamElementQueueEntry
        Emits the results associated with this queue entry.
        Specified by:
        emitResult in interface StreamElementQueueEntry<OUT>
        Parameters:
        output - the output into which to emit.
      • complete

        public void complete​(Collection<OUT> result)
        Description copied from interface: ResultFuture
        Completes the result future with a collection of result objects.

        Note that it should be called for exactly one time in the user code. Calling this function for multiple times will cause data lose.

        Put all results in a Collection and then emit output.

        Specified by:
        complete in interface ResultFuture<OUT>
        Parameters:
        result - A list of results.