pub struct WriteOpts {
pub internal_codec: u8,
pub quad: QuadClustering,
pub leaves: LeafPolicy,
pub version: u8,
pub cluster: Option<ClusterOpts>,
pub derive: Option<DeriveOpts>,
pub spill_dir: Option<PathBuf>,
}Expand description
Assembly options.
Fields§
§internal_codec: u8Codec of the root, leaves, card and stats (writer_codec()).
quad: QuadClusteringQuad tile clustering.
leaves: LeafPolicyDirectory leaf sizes.
version: u8The generation to write: VERSION (always, for every real writer) or
VERSION_06, which the tests use to make a 0x06 input for convert
(label root inside the root, no annex).
cluster: Option<ClusterOpts>Cluster the subject-leading permutations by class (0x07 only); None
writes them in subject order, and un-clusters a clustered input.
derive: Option<DeriveOpts>Find derived IRI families (0x08, SPEC.md section 5.3): the writer looks
for IRIs the index spells out, and drops the subject-only dictionary
chunks whose terms all derive, when that is worth it. None = never.
On by default.
spill_dir: Option<PathBuf>Where this writer spills the sort runs of the 0x07 quad orders and of
class clustering; None = the system temporary directory. Per writer,
never shared: another writer in the process may delete its own.
Implementations§
Source§impl WriteOpts
impl WriteOpts
Sourcepub fn with_spill_dir(self, dir: Option<PathBuf>) -> WriteOpts
pub fn with_spill_dir(self, dir: Option<PathBuf>) -> WriteOpts
These options spilling into dir.
Sourcepub fn with_derive(self, derive: Option<DeriveOpts>) -> WriteOpts
pub fn with_derive(self, derive: Option<DeriveOpts>) -> WriteOpts
These options with derived-IRI detection on (Some) or off.
Sourcepub fn with_cluster(self, c: Option<ClusterOpts>) -> WriteOpts
pub fn with_cluster(self, c: Option<ClusterOpts>) -> WriteOpts
These options with class clustering on (Some) or off.