pub struct EdgeSchema {
pub source_col: usize,
pub target_col: usize,
pub predicate_col: Option<usize>,
}Expand description
Configuration for edge column layout in a RecordBatch.
Different consumers have different schemas — this struct lets you specify which columns contain source IDs, target IDs, and predicates.
Fields§
§source_col: usizeColumn index for source node ID.
target_col: usizeColumn index for target node ID.
predicate_col: Option<usize>Column index for edge predicate/type (optional — None means “all edges”).
Trait Implementations§
Source§impl Clone for EdgeSchema
impl Clone for EdgeSchema
Source§fn clone(&self) -> EdgeSchema
fn clone(&self) -> EdgeSchema
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 EdgeSchema
impl RefUnwindSafe for EdgeSchema
impl Send for EdgeSchema
impl Sync for EdgeSchema
impl Unpin for EdgeSchema
impl UnsafeUnpin for EdgeSchema
impl UnwindSafe for EdgeSchema
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