pub struct DatasetName {
pub namespace: String,
pub name: String,
}Expand description
An OpenLineage dataset name: a namespace plus a name unique within it.
Fields§
§namespace: StringThe dataset’s namespace (e.g. a storage root or job namespace).
name: StringThe dataset’s name, unique within its namespace.
Implementations§
Source§impl DatasetName
impl DatasetName
Sourcepub fn from_location(url: &Url) -> DatasetName
pub fn from_location(url: &Url) -> DatasetName
Map a storage location URL to its OpenLineage (namespace, name).
s3://bucket/key...-> namespaces3://bucket, namekey...gs://bucket/key...-> namespacegs://bucket, namekey...file:///path-> namespacefile, name/path- anything else -> namespace
{scheme}://{host}, name{path}
Sourcepub fn from_table_ref(default_namespace: &str, table_ref: &str) -> DatasetName
pub fn from_table_ref(default_namespace: &str, table_ref: &str) -> DatasetName
A fallback name for a table reference that has no resolvable location (e.g. an in-memory or unqualified table). Uses the configured job namespace so it still lands somewhere sensible.
Trait Implementations§
Source§impl Clone for DatasetName
impl Clone for DatasetName
Source§fn clone(&self) -> DatasetName
fn clone(&self) -> DatasetName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DatasetName
impl Debug for DatasetName
impl Eq for DatasetName
Source§impl Hash for DatasetName
impl Hash for DatasetName
Source§impl Ord for DatasetName
impl Ord for DatasetName
Source§fn cmp(&self, other: &DatasetName) -> Ordering
fn cmp(&self, other: &DatasetName) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DatasetName
impl PartialEq for DatasetName
Source§fn eq(&self, other: &DatasetName) -> bool
fn eq(&self, other: &DatasetName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DatasetName
impl PartialOrd for DatasetName
impl StructuralPartialEq for DatasetName
Auto Trait Implementations§
impl Freeze for DatasetName
impl RefUnwindSafe for DatasetName
impl Send for DatasetName
impl Sync for DatasetName
impl Unpin for DatasetName
impl UnsafeUnpin for DatasetName
impl UnwindSafe for DatasetName
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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§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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more