pub enum QuadStorageEncoding {
PlainTerm,
ObjectId(ObjectIdEncoding),
}Expand description
Defines which encoding is used for retrieving quads from the storage.
Defining this is necessary such that the query planner knows what type should be assigned to the schema of quad pattern logical nodes.
Variants§
PlainTerm
Uses the plain term encoding.
Currently, the plain term encoding is not parameterizable. Therefore, this variant has no further information.
ObjectId(ObjectIdEncoding)
Uses the provided object id encoding.
Implementations§
Source§impl QuadStorageEncoding
impl QuadStorageEncoding
Sourcepub fn term_type(&self) -> DataType
pub fn term_type(&self) -> DataType
Returns the data type of a single term column, given the current encoding.
Sourcepub fn quad_schema(&self) -> Arc<DFSchema>
pub fn quad_schema(&self) -> Arc<DFSchema>
Returns the schema of an entire quad, given the current encoding.
Sourcepub fn object_id_encoding(&self) -> Option<&ObjectIdEncoding>
pub fn object_id_encoding(&self) -> Option<&ObjectIdEncoding>
Returns an optional reference to the contained ObjectIdEncoding.
Returns None otherwise.
Trait Implementations§
Source§impl Clone for QuadStorageEncoding
impl Clone for QuadStorageEncoding
Source§fn clone(&self) -> QuadStorageEncoding
fn clone(&self) -> QuadStorageEncoding
Returns a duplicate of the value. Read more
1.0.0 · 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 QuadStorageEncoding
impl Debug for QuadStorageEncoding
Source§impl Hash for QuadStorageEncoding
impl Hash for QuadStorageEncoding
Source§impl PartialEq for QuadStorageEncoding
impl PartialEq for QuadStorageEncoding
impl Eq for QuadStorageEncoding
impl StructuralPartialEq for QuadStorageEncoding
Auto Trait Implementations§
impl Freeze for QuadStorageEncoding
impl RefUnwindSafe for QuadStorageEncoding
impl Send for QuadStorageEncoding
impl Sync for QuadStorageEncoding
impl Unpin for QuadStorageEncoding
impl UnwindSafe for QuadStorageEncoding
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
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<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