MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / size

Method size

src/expr/src/relation.rs:2026–2030  ·  view source on GitHub ↗

Return the number of sub-expressions in the tree (including self).

(&self)

Source from the content-addressed store, hash-verified

2024
2025 /// Return the number of sub-expressions in the tree (including self).
2026 pub fn size(&self) -> usize {
2027 let mut size = 0;
2028 self.visit_pre(|_| size += 1);
2029 size
2030 }
2031
2032 /// Given the ids and values of a LetRec, it computes the subset of ids that are used across
2033 /// iterations. These are those ids that have a reference before they are defined, when reading

Callers

nothing calls this directly

Calls 1

visit_preMethod · 0.45

Tested by

no test coverage detected