pub struct IncrementalGraphManager { /* private fields */ }Expand description
Incremental graph manager (simplified version without incremental feature)
Implementations§
Source§impl IncrementalGraphManager
impl IncrementalGraphManager
Sourcepub fn new(graph: KnowledgeGraph, config: IncrementalConfig) -> Self
pub fn new(graph: KnowledgeGraph, config: IncrementalConfig) -> Self
Creates a new incremental graph manager without advanced features
Sourcepub fn graph(&self) -> &KnowledgeGraph
pub fn graph(&self) -> &KnowledgeGraph
Gets a reference to the knowledge graph
Sourcepub fn graph_mut(&mut self) -> &mut KnowledgeGraph
pub fn graph_mut(&mut self) -> &mut KnowledgeGraph
Gets a mutable reference to the knowledge graph
Source§impl IncrementalGraphManager
impl IncrementalGraphManager
Sourcepub fn create_change_record(
&self,
change_type: ChangeType,
operation: Operation,
change_data: ChangeData,
entity_id: Option<EntityId>,
document_id: Option<DocumentId>,
) -> ChangeRecord
pub fn create_change_record( &self, change_type: ChangeType, operation: Operation, change_data: ChangeData, entity_id: Option<EntityId>, document_id: Option<DocumentId>, ) -> ChangeRecord
Create a new change record
Sourcepub fn config(&self) -> &IncrementalConfig
pub fn config(&self) -> &IncrementalConfig
Get configuration
Sourcepub fn basic_upsert_entity(&mut self, entity: Entity) -> Result<UpdateId>
pub fn basic_upsert_entity(&mut self, entity: Entity) -> Result<UpdateId>
Basic entity upsert (works without incremental feature)
Source§impl IncrementalGraphManager
impl IncrementalGraphManager
Sourcepub fn get_statistics(&self) -> IncrementalStatistics
pub fn get_statistics(&self) -> IncrementalStatistics
Gets basic statistics about incremental operations (non-feature version)
Auto Trait Implementations§
impl Freeze for IncrementalGraphManager
impl RefUnwindSafe for IncrementalGraphManager
impl Send for IncrementalGraphManager
impl Sync for IncrementalGraphManager
impl Unpin for IncrementalGraphManager
impl UnsafeUnpin for IncrementalGraphManager
impl UnwindSafe for IncrementalGraphManager
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> 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 more