Interface RecordEmitter<E,T,SplitStateT>

Type Parameters:
E - the type of the record emitted by the SplitReader
T - the type of records that are eventually emitted to the SourceOutput.
SplitStateT - the mutable type of split state.

@PublicEvolving public interface RecordEmitter<E,T,SplitStateT>
Emit a record to the downstream.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    emitRecord(E element, org.apache.flink.api.connector.source.SourceOutput<T> output, SplitStateT splitState)
    Process and emit the records to the SourceOutput.
  • Method Details

    • emitRecord

      void emitRecord(E element, org.apache.flink.api.connector.source.SourceOutput<T> output, SplitStateT splitState) throws Exception
      Process and emit the records to the SourceOutput. A few recommendations to the implementation are following:
      • The method maybe interrupted in the middle. In that case, the same set of records will be passed to the record emitter again later. The implementation needs to make sure it reades
      Parameters:
      element - The intermediate element read by the SplitReader.
      output - The output to which the final records are emit to.
      splitState - The state of the split.
      Throws:
      Exception