pub struct PipelineBundle { /* private fields */ }Expand description
Root directory for a fixture bundle (tests/fixtures/ghcn, etc.).
Implementations§
Source§impl PipelineBundle
impl PipelineBundle
Sourcepub fn from_repo_fixture(name: &str) -> Self
pub fn from_repo_fixture(name: &str) -> Self
Bundle rooted at tests/fixtures/<name> under the repository (via CARGO_MANIFEST_DIR).
Sourcepub fn from_root(root: impl AsRef<Path>) -> Self
pub fn from_root(root: impl AsRef<Path>) -> Self
Bundle with an explicit filesystem root (JVM tests pass tests/fixtures/ghcn).
pub fn root(&self) -> &Path
Sourcepub fn load_schema(&self, rel: &str) -> IngestionResult<Schema>
pub fn load_schema(&self, rel: &str) -> IngestionResult<Schema>
Load a serde Schema from rel (e.g. schemas/json_source.schema.json).
Sourcepub fn expect_schema(&self, rel: &str) -> Schema
pub fn expect_schema(&self, rel: &str) -> Schema
Like Self::load_schema, but panics with bundle path context (integration tests).
Sourcepub fn resolve_pipeline_json(
&self,
pipeline_rel: &str,
bindings: &HashMap<String, String>,
) -> IngestionResult<String>
pub fn resolve_pipeline_json( &self, pipeline_rel: &str, bindings: &HashMap<String, String>, ) -> IngestionResult<String>
Load a pipeline template, expand *_ref schema pointers, substitute {{KEY}} placeholders.
Sourcepub fn resolve_payload_json(
&self,
payload_rel: &str,
bindings: &HashMap<String, String>,
) -> IngestionResult<String>
pub fn resolve_payload_json( &self, payload_rel: &str, bindings: &HashMap<String, String>, ) -> IngestionResult<String>
Load an rdp_ingest_ordered_paths_json (or similar) payload template.
Sourcepub fn schema_json(&self, schema_rel: &str) -> IngestionResult<String>
pub fn schema_json(&self, schema_rel: &str) -> IngestionResult<String>
Schema JSON string for path ingest FFI (rdp_ingest_xml_path, etc.).
Sourcepub fn pipeline_transform_sql(
&self,
pipeline_rel: &str,
) -> IngestionResult<String>
pub fn pipeline_transform_sql( &self, pipeline_rel: &str, ) -> IngestionResult<String>
Polars SQL from a pipeline template (transform.sql), e.g. SQLQueries.java / pytest parity.
Sourcepub fn load_query_sql(&self, query_rel: &str) -> IngestionResult<String>
pub fn load_query_sql(&self, query_rel: &str) -> IngestionResult<String>
SQL text from queries/*.sql.json ({ "sql": "..." }), e.g. sql_parity JOIN fixtures.
Trait Implementations§
Source§impl Clone for PipelineBundle
impl Clone for PipelineBundle
Source§fn clone(&self) -> PipelineBundle
fn clone(&self) -> PipelineBundle
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for PipelineBundle
impl RefUnwindSafe for PipelineBundle
impl Send for PipelineBundle
impl Sync for PipelineBundle
impl Unpin for PipelineBundle
impl UnsafeUnpin for PipelineBundle
impl UnwindSafe for PipelineBundle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more