pub struct RowSet<'a> {
pub view: String,
pub groups: Vec<Group<'a>>,
pub ungrouped: Vec<&'a Row>,
}Expand description
A selection projected into groups.
Fields§
§view: StringThe name of the view that produced this.
groups: Vec<Group<'a>>Groups, ascending by key.
ungrouped: Vec<&'a Row>Documents in scope that no field in the grouping chain gave a usable value for.
Reported rather than dropped: a view whose entries have all quietly stopped grouping looks exactly like an empty archive, and the difference is the whole diagnosis. A frontend labels this bucket (“Undated”, “Untagged”); which words to use is a presentation decision this crate does not make.
Implementations§
Source§impl RowSet<'_>
impl RowSet<'_>
Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
How many documents this row set covers.
Not the number of rows printed: a document under two of a multi-valued
field’s groups is one document in two places, and counting it twice is
how a view comes to claim more entries than the workspace has. The
placements are placements.
Sourcepub fn placements(&self) -> usize
pub fn placements(&self) -> usize
How many rows a renderer will draw — one per document per group it
falls into, which is what makes it different from len.