pub struct AvroStreamOpts { /* private fields */ }
Expand description
Options for ingesting Avro data with the following schema. This is a “stream-like” file format to support use cases where a columnar/tabular format does not make sense. This closely matches Nominal’s streaming API, making it useful for use cases where network connection drops during streaming and a backup file needs to be created.
If this schema is not used, will result in a failed ingestion. { “type”: “record”, “name”: “AvroStream”, “namespace”: “io.nominal.ingest”, “fields”: [ { “name”: “channel”, “type”: “string”, “doc”: “Channel/series name (e.g., ‘vehicle_id’, ‘col_1’, ‘temperature’)”, }, { “name”: “timestamps”, “type”: {“type”: “array”, “items”: “long”}, “doc”: “Array of Unix timestamps in nanoseconds”, }, { “name”: “values”, “type”: {“type”: “array”, “items”: [“double”, “string”]}, “doc”: “Array of values. Can either be doubles or strings”, }, { “name”: “tags”, “type”: {“type”: “map”, “values”: “string”}, “default”: {}, “doc”: “Key-value metadata tags”, }, ], }
Implementations§
Source§impl AvroStreamOpts
impl AvroStreamOpts
Sourcepub fn builder() -> Builder<SourceStage>
pub fn builder() -> Builder<SourceStage>
Returns a new builder.
Source§impl AvroStreamOpts
impl AvroStreamOpts
Sourcepub fn new(source: IngestSource, target: DatasetIngestTarget) -> Self
pub fn new(source: IngestSource, target: DatasetIngestTarget) -> Self
Constructs a new instance of the type.
pub fn source(&self) -> &IngestSource
pub fn target(&self) -> &DatasetIngestTarget
Trait Implementations§
Source§impl Clone for AvroStreamOpts
impl Clone for AvroStreamOpts
Source§fn clone(&self) -> AvroStreamOpts
fn clone(&self) -> AvroStreamOpts
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AvroStreamOpts
impl Debug for AvroStreamOpts
Source§impl<'de> Deserialize<'de> for AvroStreamOpts
impl<'de> Deserialize<'de> for AvroStreamOpts
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<AvroStreamOpts> for Builder<Complete>
impl From<AvroStreamOpts> for Builder<Complete>
Source§fn from(v: AvroStreamOpts) -> Self
fn from(v: AvroStreamOpts) -> Self
Source§impl Hash for AvroStreamOpts
impl Hash for AvroStreamOpts
Source§impl Ord for AvroStreamOpts
impl Ord for AvroStreamOpts
Source§fn cmp(&self, other: &AvroStreamOpts) -> Ordering
fn cmp(&self, other: &AvroStreamOpts) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for AvroStreamOpts
impl PartialEq for AvroStreamOpts
Source§impl PartialOrd for AvroStreamOpts
impl PartialOrd for AvroStreamOpts
Source§impl Serialize for AvroStreamOpts
impl Serialize for AvroStreamOpts
impl Eq for AvroStreamOpts
impl StructuralPartialEq for AvroStreamOpts
Auto Trait Implementations§
impl Freeze for AvroStreamOpts
impl RefUnwindSafe for AvroStreamOpts
impl Send for AvroStreamOpts
impl Sync for AvroStreamOpts
impl Unpin for AvroStreamOpts
impl UnwindSafe for AvroStreamOpts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request