pub struct IngestResult {
pub nodes: Vec<CodeNode>,
pub edges: Vec<CodeEdge>,
pub parse_results: Vec<ParseResult>,
pub errors: Vec<(PathBuf, String)>,
pub source_texts: HashMap<String, String>,
}Expand description
Result of a full directory ingestion.
Fields§
§nodes: Vec<CodeNode>All parsed CodeNodes.
edges: Vec<CodeEdge>All extracted CodeEdges.
parse_results: Vec<ParseResult>Per-file parse results (for call edge extraction).
errors: Vec<(PathBuf, String)>Files that failed to parse (path, error message).
source_texts: HashMap<String, String>Source text by file path (for call edge extraction).
Implementations§
Source§impl IngestResult
impl IngestResult
Sourcepub fn nodes_batch(&self) -> Result<RecordBatch, ArrowError>
pub fn nodes_batch(&self) -> Result<RecordBatch, ArrowError>
Build CodeNodes RecordBatch from ingestion results.
Sourcepub fn edges_batch(&self) -> Result<RecordBatch, ArrowError>
pub fn edges_batch(&self) -> Result<RecordBatch, ArrowError>
Build CodeEdges RecordBatch from ingestion results.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IngestResult
impl RefUnwindSafe for IngestResult
impl Send for IngestResult
impl Sync for IngestResult
impl Unpin for IngestResult
impl UnsafeUnpin for IngestResult
impl UnwindSafe for IngestResult
Blanket Implementations§
impl<T> Allocation for T
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