pub struct BatchMeta {
pub oml_name: Option<String>,
pub output_disabled: Vec<String>,
}Expand description
Batch-level runtime metadata passed from engine to sink.
BatchMeta carries information that belongs to the batch/frame level
(not to individual records), such as the OML output model name and output
metadata field policy.
Sinks decide how to consume it — e.g. TcpArrowSink uses oml_name
as the Arrow frame tag in arrow_framed mode.
Fields§
§oml_name: Option<String>OML output model name — identifies the logical output stream.
output_disabled: Vec<String>Metadata payload fields disabled by the engine/group configuration.
Implementations§
Source§impl BatchMeta
impl BatchMeta
pub fn new() -> Self
pub fn with_oml_name(name: impl Into<String>) -> Self
pub fn oml_name(&self) -> Option<&str>
pub fn with_output_disabled( fields: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn set_output_disabled( &mut self, fields: impl IntoIterator<Item = impl Into<String>>, )
pub fn output_disabled(&self) -> &[String]
pub fn is_output_disabled(&self, field: &str) -> bool
pub fn is_empty(&self) -> bool
Trait Implementations§
impl Eq for BatchMeta
impl StructuralPartialEq for BatchMeta
Auto Trait Implementations§
impl Freeze for BatchMeta
impl RefUnwindSafe for BatchMeta
impl Send for BatchMeta
impl Sync for BatchMeta
impl Unpin for BatchMeta
impl UnsafeUnpin for BatchMeta
impl UnwindSafe for BatchMeta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more