Struct rlink_connector_kafka::source::input_format::KafkaInputFormat [−][src]
pub struct KafkaInputFormat { /* fields omitted */ }
Implementations
pub fn new(
client_config: ClientConfig,
topics: Vec<String>,
buffer_size: usize,
offset_range: OffsetRange,
deserializer_builder: Box<dyn KafkaRecordDeserializerBuilder>,
parallelism: u16,
fn_name: String
) -> Self
Trait Implementations
trigger the method when the operator
operate a Barrier
event
fn initialize_state(
&mut self,
context: &FunctionSnapshotContext,
handle: &Option<CheckpointHandle>
)
fn initialize_state(
&mut self,
context: &FunctionSnapshotContext,
handle: &Option<CheckpointHandle>
)
trigger the method when a operator
initialization
fn consult_version(
&mut self,
context: &FunctionSnapshotContext,
_handle: &Option<CheckpointHandle>
) -> CheckpointId
Initialization of InputFormat
, Each task will be called once when it starts.
return an Iterator
of Record
, if the next
of Iterator
is None
,
the task of InputFormat
will be Terminated
.
the function is called by element_iter
, a user-friendly function,
usually you just need to implement it Read more
return an Iterator
of Element
, if the next
of Iterator
is None
,
the task of InputFormat
will be Terminated
.
the function is called by runtime Read more
Auto Trait Implementations
impl !RefUnwindSafe for KafkaInputFormat
impl !Send for KafkaInputFormat
impl !Sync for KafkaInputFormat
impl Unpin for KafkaInputFormat
impl !UnwindSafe for KafkaInputFormat
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self