pub struct DocumentProcessor { /* private fields */ }Implementations§
Source§impl DocumentProcessor
impl DocumentProcessor
Sourcepub fn new_with_dependencies(
preprocessor: Box<dyn Preprocessor>,
storage: Box<dyn DocumentStorage + Sync + Send>,
) -> Result<DocumentProcessor, Error>
pub fn new_with_dependencies( preprocessor: Box<dyn Preprocessor>, storage: Box<dyn DocumentStorage + Sync + Send>, ) -> Result<DocumentProcessor, Error>
Create DocumentProcessor with full dependency injection
Sourcepub fn new_cli_jni(
jre_path: &Path,
jar_path: &Path,
) -> Result<DocumentProcessor, Error>
pub fn new_cli_jni( jre_path: &Path, jar_path: &Path, ) -> Result<DocumentProcessor, Error>
Convenience constructor for CLI usage with JNI backend (cross-platform)
Sourcepub fn new_cli_jni_with_cache(
jre_path: &Path,
jar_path: &Path,
cache_dir: &str,
) -> Result<DocumentProcessor, Error>
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
Sourcepub fn process_document_with_cache(
&mut self,
input_path: &str,
config: &ParsingConfig,
fresh_from: FreshFrom,
cache_defaults: &CacheDefaults,
enable_profiling: bool,
) -> Result<DocumentGraph, Error>
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.
Sourcepub fn process_document(
&mut self,
input_path: &str,
) -> Result<DocumentGraph, Error>
pub fn process_document( &mut self, input_path: &str, ) -> Result<DocumentGraph, Error>
Simple document processing function using default config (no cache awareness)
Sourcepub fn process_document_with_config_file(
&mut self,
input_path: &str,
config_path: &str,
) -> Result<DocumentGraph, Error>
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
Sourcepub fn process_document_capture_stages(
&mut self,
input_path: &str,
config: &ParsingConfig,
) -> Result<PipelineStages, Error>
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§
impl !Freeze for DocumentProcessor
impl !RefUnwindSafe for DocumentProcessor
impl !Sync for DocumentProcessor
impl !UnwindSafe for DocumentProcessor
impl Send for DocumentProcessor
impl Unpin for DocumentProcessor
impl UnsafeUnpin for DocumentProcessor
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