pub struct AqlGraphLoader { /* private fields */ }Expand description
AQL-based graph loader
Implementations§
Source§impl AqlGraphLoader
impl AqlGraphLoader
Sourcepub fn new(
db_config: DatabaseConfiguration,
batch_size: u64,
vertex_attributes: Vec<DataItem>,
edge_attributes: Vec<DataItem>,
queries: Vec<Vec<AqlQuery>>,
max_type_errors: Option<u64>,
) -> Result<Self, GraphLoaderError>
pub fn new( db_config: DatabaseConfiguration, batch_size: u64, vertex_attributes: Vec<DataItem>, edge_attributes: Vec<DataItem>, queries: Vec<Vec<AqlQuery>>, max_type_errors: Option<u64>, ) -> Result<Self, GraphLoaderError>
Create a new AQL graph loader
§Arguments
db_config- Database configurationbatch_size- Size of batches to fetch from the databasevertex_attributes- List of vertex attributes to load with their typesedge_attributes- List of edge attributes to load with their typesqueries- Nested list of AQL queries (outer list = sequential, inner list = parallel)max_type_errors- Maximum number of type error messages to collect per GraphBatchNone(recommended default): All type errors are reportedSome(n): At most n type error messages are collected per GraphBatch (can be 0)
Sourcepub async fn do_load<F>(&self, callback: F) -> Result<(), GraphLoaderError>
pub async fn do_load<F>(&self, callback: F) -> Result<(), GraphLoaderError>
Execute all AQL queries and call the provided callback with vertices and edges
Auto Trait Implementations§
impl Freeze for AqlGraphLoader
impl RefUnwindSafe for AqlGraphLoader
impl Send for AqlGraphLoader
impl Sync for AqlGraphLoader
impl Unpin for AqlGraphLoader
impl UnwindSafe for AqlGraphLoader
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