#[non_exhaustive]pub enum WorkUnit {
Archives,
Segments,
Nodes,
Revisions,
JournalLines,
Checkpoints,
Files,
Bytes,
IndexEntries,
IndexDocuments,
}Expand description
What a step counts.
The unit tells a renderer how to word and scale a report: a count of
WorkUnit::Bytes is rendered as a size, every other unit as a plain
count of the named things.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Archives
TAR archive files.
Segments
Segments within archives.
Nodes
Content nodes.
Revisions
Journal revisions.
JournalLines
Lines of journal.log.
Checkpoints
Named checkpoints.
Files
Files: in the repository directory, or in an index dump or import directory.
The second reading arrived with froe index dump, which counts the
index files it streams out rather than anything in the store.
Bytes
Bytes of content.
IndexEntries
Index entries: one (key, path) pair of a rebuilt property,
unique or reference index.
IndexDocuments
Documents handed to the Lucene index writer, one per node the definition matches.
Implementations§
Source§impl WorkUnit
impl WorkUnit
Sourcepub fn plural_noun(self) -> &'static str
pub fn plural_noun(self) -> &'static str
The plural noun a report uses for this unit, for example
"archives". WorkUnit::Bytes is "bytes"; a renderer that
scales byte counts substitutes its own scaled suffix.
Sourcepub fn singular_noun(self) -> &'static str
pub fn singular_noun(self) -> &'static str
The singular noun, for a report of exactly one item.