pub enum GeneratorSpec {
Watdiv {
scale: u32,
stress: WatdivStressSpec,
},
WatdivBasic {
scale: u32,
},
Lubm {
scale: u32,
seed: u32,
threads: u32,
start_index: u32,
ontology: String,
queries: Option<Vec<String>>,
},
}Expand description
A declarative generator spec. Tagged on the kind field
(kind: watdiv or kind: lubm).
Variants§
Watdiv
Drives the WatDiv pipeline (kermit_rdf::pipeline::run_pipeline).
Fields
stress: WatdivStressSpecStress-template parameters. Defaults to the same values as the
bench gen watdiv CLI defaults.
WatdivBasic
Drives the WatDiv Basic Testing workload — the 20 canonical L/S/F/C
query templates (kermit_rdf::pipeline::run_basic_pipeline). Carries
no stress parameters: the templates are fixed.
Lubm
Drives the LUBM pipeline
(kermit_rdf::lubm::pipeline::run_lubm_pipeline).
Fields
ontology: StringOntology IRI (--ontology). Default
DEFAULT_LUBM_ONTOLOGY.
Implementations§
Source§impl GeneratorSpec
impl GeneratorSpec
Sourcepub fn spec_hash(&self) -> String
pub fn spec_hash(&self) -> String
Computes the canonical SHA-256 hash of this spec, used by the
materialization layer to detect parameter drift against a cached
meta.json. Hashes the YAML serialization of the spec; field
ordering is fixed by the struct/enum definition so the output is
deterministic across runs and platforms (no HashMap fields).
§Panics
Panics if serde_yaml::to_string fails for Self. The serializer
is total over all GeneratorSpec values.
Trait Implementations§
Source§impl Clone for GeneratorSpec
impl Clone for GeneratorSpec
Source§fn clone(&self) -> GeneratorSpec
fn clone(&self) -> GeneratorSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GeneratorSpec
impl Debug for GeneratorSpec
Source§impl<'de> Deserialize<'de> for GeneratorSpec
impl<'de> Deserialize<'de> for GeneratorSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for GeneratorSpec
Source§impl PartialEq for GeneratorSpec
impl PartialEq for GeneratorSpec
Source§fn eq(&self, other: &GeneratorSpec) -> bool
fn eq(&self, other: &GeneratorSpec) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for GeneratorSpec
impl Serialize for GeneratorSpec
impl StructuralPartialEq for GeneratorSpec
Auto Trait Implementations§
impl Freeze for GeneratorSpec
impl RefUnwindSafe for GeneratorSpec
impl Send for GeneratorSpec
impl Sync for GeneratorSpec
impl Unpin for GeneratorSpec
impl UnsafeUnpin for GeneratorSpec
impl UnwindSafe for GeneratorSpec
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.