Interface RecordEmitter<E,T,SplitStateT>
-
- Type Parameters:
E- the type of the record emitted by theSplitReaderT- the type of records that are eventually emitted to theSourceOutput.SplitStateT- the mutable type of split state.
@PublicEvolving public interface RecordEmitter<E,T,SplitStateT>Emit a record to the downstream.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidemitRecord(E element, org.apache.flink.api.connector.source.SourceOutput<T> output, SplitStateT splitState)Process and emit the records to theSourceOutput.
-
-
-
Method Detail
-
emitRecord
void emitRecord(E element, org.apache.flink.api.connector.source.SourceOutput<T> output, SplitStateT splitState) throws Exception
Process and emit the records to theSourceOutput. 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
-
-