(value string)
| 602 | type cardinality map[string]uint64 |
| 603 | |
| 604 | func (c cardinality) add(value string) { |
| 605 | // TODO - instead of storing the raw value in the map, we could hash it and record the length. The |
| 606 | // requirement is to be able to estimate the cardinality and total content size at the end. |
| 607 | c[value]++ |
| 608 | } |
| 609 | |
| 610 | // totalBytes is the sum of all value content length regardless of cardinality or repetitino |
| 611 | func (c cardinality) totalBytes() uint64 { |
no outgoing calls
no test coverage detected