pub enum Phase {
Show 20 variants
Read,
Parse,
Reason,
ParseDictionary,
ParseEncode,
ParseChunk,
FrequentObjects,
Dictionary,
Encode,
CardDerive,
Pyramid,
TextIndex,
LabelsSchema,
DictionarySection,
IndexPermutations,
NamedGraphs,
Serialize,
StarterQueries,
Write,
ContentHash,
}Expand description
One phase of a build. A closed set, so a reader of the record knows every name it can meet, and a writer can size a record before the build has run.
Variants§
Read
Reading the input .rete back (repyramid, recard).
Parse
Reading and parsing the inputs into memory (the in-RAM text path).
Reason
--materialize / --reason: the reasoner over the default graph.
ParseDictionary
The two-pass streaming build’s first pass: read + parse + observe every term, then sort the dictionary.
ParseEncode
The two-pass streaming build’s second pass: read + parse + encode.
ParseChunk
The memory-bounded build’s single pass: read + parse + spill chunks.
FrequentObjects
The memory-bounded build’s --frequent-objects pass: one k-way walk of
the chunks’ object counts that picks the terms to promote.
Dictionary
Building the dictionary from parsed statements (in-RAM), or merging the chunk dictionaries (memory-bounded).
Encode
Encoding statements to id-triples (in-RAM), or remapping the chunks’ local ids to global ones (memory-bounded).
CardDerive
Deriving the Dataset Card.
Pyramid
The community pyramid.
TextIndex
The full-text index.
LabelsSchema
The LABEL_INDEX and SCHEMA sections.
DictionarySection
Compressing and serializing the dictionary section.
IndexPermutations
Sorting and tiling the index permutations (and, in-RAM, the named graphs’ indexes).
NamedGraphs
The memory-bounded build’s named-graph indexes or quad index.
Serialize
Assembling the file image in memory.
StarterQueries
Running the card’s starter queries against the finished file.
Write
Writing the file to disk.
ContentHash
Folding the content hash over the written sections for a card placed
after the data (the memory-bounded build, rete recard --in-place):
the card is hashed first, so the rest of the hash can only be folded
once it exists — one read of every hashed section.
Implementations§
Trait Implementations§
impl Copy for Phase
impl Eq for Phase
Source§impl Ord for Phase
impl Ord for Phase
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Phase
impl PartialOrd for Phase
impl StructuralPartialEq for Phase
Auto Trait Implementations§
impl Freeze for Phase
impl RefUnwindSafe for Phase
impl Send for Phase
impl Sync for Phase
impl Unpin for Phase
impl UnsafeUnpin for Phase
impl UnwindSafe for Phase
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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