pub struct TextIndexDoc {
pub term: Vec<u8>,
pub predicate: Vec<u8>,
pub lexical: String,
pub language: Option<String>,
}Expand description
One literal to add to the text index.
The partition derives the bounded prefix and suffix fields from lexical;
carrying them would only duplicate bytes on the wire. term is the encoded
EncodedTerm and stays opaque to every layer that does not need to decode
it.
The persistent index keys one document by (predicate, literal), so the
same literal under two predicates is two documents (the predicate dimension
is what lets a query scope its candidate set). predicate is the encoded
predicate term. It is empty only for compute-side scratch documents built
by the direct-evaluation roads, which never enter the persistent index.
Fields§
§term: Vec<u8>Encoded EncodedTerm bytes; the candidate-scan payload.
predicate: Vec<u8>Encoded predicate term bytes; the other half of the document identity.
lexical: StringThe literal’s lexical form.
language: Option<String>Language tag for rdf:langString, None otherwise.
Implementations§
Trait Implementations§
Source§impl Clone for TextIndexDoc
impl Clone for TextIndexDoc
Source§fn clone(&self) -> TextIndexDoc
fn clone(&self) -> TextIndexDoc
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TextIndexDoc
impl Debug for TextIndexDoc
Source§impl PartialEq for TextIndexDoc
impl PartialEq for TextIndexDoc
impl Eq for TextIndexDoc
impl StructuralPartialEq for TextIndexDoc
Auto Trait Implementations§
impl Freeze for TextIndexDoc
impl RefUnwindSafe for TextIndexDoc
impl Send for TextIndexDoc
impl Sync for TextIndexDoc
impl Unpin for TextIndexDoc
impl UnsafeUnpin for TextIndexDoc
impl UnwindSafe for TextIndexDoc
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
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