Skip to main content

DocumentProcessor

Struct DocumentProcessor 

Source
pub struct DocumentProcessor { /* private fields */ }

Implementations§

Source§

impl DocumentProcessor

Source

pub fn new_with_dependencies( preprocessor: Box<dyn Preprocessor>, storage: Box<dyn DocumentStorage + Sync + Send>, ) -> Result<DocumentProcessor, Error>

Create DocumentProcessor with full dependency injection

Source

pub fn new_cli_jni( jre_path: &Path, jar_path: &Path, ) -> Result<DocumentProcessor, Error>

Convenience constructor for CLI usage with JNI backend (cross-platform)

Source

pub fn new_cli_jni_with_cache( jre_path: &Path, jar_path: &Path, cache_dir: &str, ) -> Result<DocumentProcessor, Error>

Convenience constructor for CLI with JNI backend and custom cache directory

Source

pub fn process_document_with_cache( &mut self, input_path: &str, config: &ParsingConfig, fresh_from: FreshFrom, cache_defaults: &CacheDefaults, enable_profiling: bool, ) -> Result<DocumentGraph, Error>

Process document with cache point awareness (CR-11). This is the primary entry point for CLI usage.

Source

pub fn process_document( &mut self, input_path: &str, ) -> Result<DocumentGraph, Error>

Simple document processing function using default config (no cache awareness)

Source

pub fn process_document_with_config_file( &mut self, input_path: &str, config_path: &str, ) -> Result<DocumentGraph, Error>

Process document with config loaded from file

Source

pub fn process_document_capture_stages( &mut self, input_path: &str, config: &ParsingConfig, ) -> Result<PipelineStages, Error>

Process document and capture all intermediate stage outputs Used for pipeline diagnostics (–dump-stages). Always runs fresh.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.