totalBytes is the sum of all value content length regardless of cardinality or repetitino
()
| 609 | |
| 610 | // totalBytes is the sum of all value content length regardless of cardinality or repetitino |
| 611 | func (c cardinality) totalBytes() uint64 { |
| 612 | total := uint64(0) |
| 613 | for v, count := range c { |
| 614 | total += uint64(len(v)) * count |
| 615 | } |
| 616 | return total |
| 617 | } |
| 618 | |
| 619 | func (c cardinality) distinctValueCount() int { |
| 620 | return len(c) |
no outgoing calls
no test coverage detected