pub trait SourceParserIntoStreamExtwhere
Self: ByteStreamSourceParser,{
// Required method
fn parse_stream(self, _: BoxSourceMessageStream) -> impl SourceChunkStream;
}
Required Methods§
sourcefn parse_stream(self, _: BoxSourceMessageStream) -> impl SourceChunkStream
fn parse_stream(self, _: BoxSourceMessageStream) -> impl SourceChunkStream
Parse a SourceMessage
stream into a StreamChunk
stream.
§Arguments
msg_stream
: A stream of batches ofSourceMessage
.
§Returns
A SourceChunkStream
of parsed chunks. Each of the parsed chunks are guaranteed
to have less than or equal to source_ctrl_opts.chunk_size
rows, unless there’s a
large transaction and source_ctrl_opts.split_txn
is false.
Object Safety§
This trait is not object safe.