Struct dataflow::source::S3SourceReader [−][src]
pub struct S3SourceReader {
source_name: String,
id: SourceInstanceId,
receiver_stream: Receiver<Result<InternalMessage, S3Error>>,
dataflow_status: Sender<DataflowStatus>,
offset: S3Offset,
}
Expand description
Information required to load data from S3
Fields
source_name: String
The name of the source that the user entered
id: SourceInstanceId
Unique source ID
receiver_stream: Receiver<Result<InternalMessage, S3Error>>
Receiver channel that ingests records
dataflow_status: Sender<DataflowStatus>
offset: S3Offset
Total number of records that this source has read
Trait Implementations
type Value = MessagePayload
fn new(
source_name: String,
source_id: SourceInstanceId,
worker_id: usize,
_worker_count: usize,
consumer_activator: SyncActivator,
connector: ExternalSourceConnector,
_restored_offsets: Vec<(PartitionId, Option<MzOffset>)>,
_encoding: SourceDataEncoding,
_: Option<Logger>,
metrics: SourceBaseMetrics
) -> Result<(S3SourceReader, Option<PartitionId>), Error>
fn new(
source_name: String,
source_id: SourceInstanceId,
worker_id: usize,
_worker_count: usize,
consumer_activator: SyncActivator,
connector: ExternalSourceConnector,
_restored_offsets: Vec<(PartitionId, Option<MzOffset>)>,
_encoding: SourceDataEncoding,
_: Option<Logger>,
metrics: SourceBaseMetrics
) -> Result<(S3SourceReader, Option<PartitionId>), Error>
Create a new source reader. Read more
Returns the next message available from the source. Read more
Auto Trait Implementations
impl !RefUnwindSafe for S3SourceReader
impl Send for S3SourceReader
impl Sync for S3SourceReader
impl Unpin for S3SourceReader
impl !UnwindSafe for S3SourceReader
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more