pub enum OperatorOutput {
Posting(PostingList),
Graph(GraphPostingList),
Generalized(GeneralizedPostingList),
}Expand description
Materialised value produced by a physical OperatorTree node.
Most operators preserve one document id per row and therefore emit a
PostingList. Graph operators retain their subgraph side table in a
GraphPostingList, while join operators preserve an ordered tuple of
document ids in a GeneralizedPostingList. Keeping the carriers distinct
prevents set operations from silently applying ordinary payload precedence
to graph metadata or comparing synthetic join enumeration positions.
Variants§
Implementations§
Source§impl OperatorOutput
impl OperatorOutput
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn as_posting(&self) -> Option<&PostingList>
pub fn as_graph(&self) -> Option<&GraphPostingList>
pub fn as_generalized(&self) -> Option<&GeneralizedPostingList>
Trait Implementations§
Source§impl Clone for OperatorOutput
impl Clone for OperatorOutput
Source§fn clone(&self) -> OperatorOutput
fn clone(&self) -> OperatorOutput
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 OperatorOutput
impl Debug for OperatorOutput
Source§impl From<GeneralizedPostingList> for OperatorOutput
impl From<GeneralizedPostingList> for OperatorOutput
Source§fn from(value: GeneralizedPostingList) -> Self
fn from(value: GeneralizedPostingList) -> Self
Converts to this type from the input type.
Source§impl From<GraphPostingList> for OperatorOutput
impl From<GraphPostingList> for OperatorOutput
Source§fn from(value: GraphPostingList) -> Self
fn from(value: GraphPostingList) -> Self
Converts to this type from the input type.
Source§impl From<PostingList> for OperatorOutput
impl From<PostingList> for OperatorOutput
Source§fn from(value: PostingList) -> Self
fn from(value: PostingList) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OperatorOutput
impl PartialEq for OperatorOutput
impl StructuralPartialEq for OperatorOutput
Auto Trait Implementations§
impl Freeze for OperatorOutput
impl RefUnwindSafe for OperatorOutput
impl Send for OperatorOutput
impl Sync for OperatorOutput
impl Unpin for OperatorOutput
impl UnsafeUnpin for OperatorOutput
impl UnwindSafe for OperatorOutput
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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