ReadonlycountOptionalfindOptionalqsetName: stringSum every quantityName row, optionally restricted to entities of
elementType (an IfcTypeEnum value).
The columnar implementation here and the cache-restored implementation in
@ifc-lite/cache's readQuantities only ever see entityId per row —
neither has the entity-type data needed to honor elementType, so both
THROW when it is passed rather than silently returning the unfiltered
total. A store that wants type-filtered sums must resolve entity ids via
entities.getByType(elementType) itself and total the matching rows (see
apps/viewer's server-backed QuantityTable, which does have that data
in scope and implements the filter for real).
OptionalelementType: number
Find entity ids whose quantity
quantityNamesatisfiesoperator/value. WhenqsetNameis given, only matches within that quantity set; an unknown quantity-set name matches nothing. The quantity mirror ofPropertyTable.findByProperty: samecomparePropertyValuessemantics, and answered offquantityIndex, so the cost scales with the number of rows carrying that quantity name rather than with the number of entities being filtered.Optional so a duck-typed quantity table stays valid without it.
EntityQuery.wherePropertythen resolves quantity sets per candidate throughIfcStoreBase.getQuantitiesinstead — the same answer, more work.