pub enum EncodingName {
ObjectId,
PlainTerm,
TypedValue,
Sortable,
}
Expand description
Represents the name of a single TermEncoding.
RDF Fusion allows users to define multiple encodings for RDF terms. This allows specializing the Arrow arrays used for holding the results of queries.
§Order
The order defined over the EncodingName defines how much information they preserve.
- Self::ObjectId and Self::PlainTerm preserve the entire information.
- Self::TypedValue preserves the value of the term, but not their lexical form.
- Self::Sortable can loose information (e.g., precision in numerics)
Variants§
ObjectId
Name of the ObjectIdEncoding. Represents all terms, including literals, as a unique identifier.
PlainTerm
Name of the PlainTermEncoding. Represents all terms, including literals, using their lexical value.
TypedValue
Name of the TypedValueEncoding. Represents IRIs and blank nodes using their lexical value and literals as their typed value.
Sortable
Name of the SortableTermEncoding which is used for sorting. We plan to remove this encoding in the future, once we can introduce custom orderings into the query engine.
Trait Implementations§
Source§impl Clone for EncodingName
impl Clone for EncodingName
Source§fn clone(&self) -> EncodingName
fn clone(&self) -> EncodingName
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for EncodingName
impl Debug for EncodingName
Source§impl Hash for EncodingName
impl Hash for EncodingName
Source§impl Ord for EncodingName
impl Ord for EncodingName
Source§fn cmp(&self, other: &EncodingName) -> Ordering
fn cmp(&self, other: &EncodingName) -> 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 EncodingName
impl PartialEq for EncodingName
Source§impl PartialOrd for EncodingName
impl PartialOrd for EncodingName
impl Copy for EncodingName
impl Eq for EncodingName
impl StructuralPartialEq for EncodingName
Auto Trait Implementations§
impl Freeze for EncodingName
impl RefUnwindSafe for EncodingName
impl Send for EncodingName
impl Sync for EncodingName
impl Unpin for EncodingName
impl UnwindSafe for EncodingName
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
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>
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