pub struct StreamingGraphRelationLoader { /* private fields */ }Expand description
Streaming loader for typed biomedical graph relation rows.
Implementations§
Source§impl StreamingGraphRelationLoader
impl StreamingGraphRelationLoader
Sourcepub fn new(format: GraphInputFormat) -> Self
pub fn new(format: GraphInputFormat) -> Self
Create a loader for the given input format.
Sourcepub fn with_chunk_rows(self, chunk_rows: usize) -> Self
pub fn with_chunk_rows(self, chunk_rows: usize) -> Self
Set the maximum number of rows accounted to a single streaming chunk.
Sourcepub fn load_path(
&self,
path: impl AsRef<Path>,
) -> Result<GraphRelationLoadReport>
pub fn load_path( &self, path: impl AsRef<Path>, ) -> Result<GraphRelationLoadReport>
Stream a graph file and return provenance and histogram telemetry.
Sourcepub fn load_path_with_sink(
&self,
path: impl AsRef<Path>,
sink: impl FnMut(GraphEdgeRow),
) -> Result<GraphRelationLoadReport>
pub fn load_path_with_sink( &self, path: impl AsRef<Path>, sink: impl FnMut(GraphEdgeRow), ) -> Result<GraphRelationLoadReport>
Stream a graph file into a caller-provided edge sink and return telemetry.
Trait Implementations§
Source§impl Clone for StreamingGraphRelationLoader
impl Clone for StreamingGraphRelationLoader
Source§fn clone(&self) -> StreamingGraphRelationLoader
fn clone(&self) -> StreamingGraphRelationLoader
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 moreAuto Trait Implementations§
impl Freeze for StreamingGraphRelationLoader
impl RefUnwindSafe for StreamingGraphRelationLoader
impl Send for StreamingGraphRelationLoader
impl Sync for StreamingGraphRelationLoader
impl Unpin for StreamingGraphRelationLoader
impl UnsafeUnpin for StreamingGraphRelationLoader
impl UnwindSafe for StreamingGraphRelationLoader
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