pub struct ProjectionBuilder<'a> { /* private fields */ }Expand description
Builder for creating graph projections with fluent API
Implementations§
Source§impl<'a> ProjectionBuilder<'a>
impl<'a> ProjectionBuilder<'a>
Sourcepub fn new(graph: &'a GraphStore) -> Self
pub fn new(graph: &'a GraphStore) -> Self
Create a new projection builder
Sourcepub fn with_node_labels<I, S>(self, labels: I) -> Self
pub fn with_node_labels<I, S>(self, labels: I) -> Self
Filter nodes by category label (string form).
Sourcepub fn with_node_ids(self, ids: HashSet<String>) -> Self
pub fn with_node_ids(self, ids: HashSet<String>) -> Self
Filter nodes by IDs
Sourcepub fn with_edge_types<I, S>(self, types: I) -> Self
pub fn with_edge_types<I, S>(self, types: I) -> Self
Filter edges by category label (string form).
Sourcepub fn with_min_weight(self, weight: f32) -> Self
pub fn with_min_weight(self, weight: f32) -> Self
Filter edges by minimum weight
Sourcepub fn with_max_weight(self, weight: f32) -> Self
pub fn with_max_weight(self, weight: f32) -> Self
Filter edges by maximum weight
Sourcepub fn aggregate(self, strategy: AggregationStrategy) -> Self
pub fn aggregate(self, strategy: AggregationStrategy) -> Self
Set edge aggregation strategy
Sourcepub fn undirected(self) -> Self
pub fn undirected(self) -> Self
Make the projection undirected
Sourcepub fn build(self) -> GraphProjection
pub fn build(self) -> GraphProjection
Build the projection
Auto Trait Implementations§
impl<'a> Forget for ProjectionBuilder<'a>
impl<'a> Freeze for ProjectionBuilder<'a>where
&'a GraphStore: Freeze,
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
PhantomData<(String, ())>: Freeze,
impl<'a> Move for ProjectionBuilder<'a>
impl<'a> RefUnwindSafe for ProjectionBuilder<'a>where
RwLock<HashMap<String, RecordLocation>>: RefUnwindSafe,
RwLock<HashMap<String, Vec<(String, String, f32)>>>: RefUnwindSafe,
Atomic<usize>: RefUnwindSafe,
RwLock<HashMap<LabelId, HashSet<String>>>: RefUnwindSafe,
RwLock<HashMap<String, HashSet<String>>>: RefUnwindSafe,
RwLock<BloomSegment>: RefUnwindSafe,
RwLock<usize>: RefUnwindSafe,
RwLock<RegistryInner>: RefUnwindSafe,
RwLock<Vec<Page>>: RefUnwindSafe,
Atomic<u32>: RefUnwindSafe,
Atomic<u64>: RefUnwindSafe,
impl<'a> Send for ProjectionBuilder<'a>
impl<'a> Sync for ProjectionBuilder<'a>where
RawVecInner: Sync,
RwLock<HashMap<String, RecordLocation>>: Sync,
RwLock<HashMap<String, Vec<(String, String, f32)>>>: Sync,
Arc<NodeSecondaryIndex>: Sync,
Arc<LabelRegistry>: Sync,
RwLock<Vec<Page>>: Sync,
Atomic<u32>: Sync,
RawTable<(String, u64)>: Sync,
Atomic<u64>: Sync,
RawTable<(String, ())>: Sync,
impl<'a> Unpin for ProjectionBuilder<'a>
impl<'a> UnsafeUnpin for ProjectionBuilder<'a>where
&'a GraphStore: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(String, ())>: UnsafeUnpin,
impl<'a> UnwindSafe for ProjectionBuilder<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request