(hash uint64)
| 87 | } |
| 88 | |
| 89 | func (c *Cardinality) Insert(hash uint64) { |
| 90 | c.mu.Lock() |
| 91 | c.sketches[c.current].InsertHash(hash) |
| 92 | c.mu.Unlock() |
| 93 | } |
| 94 | |
| 95 | // Estimate returns the estimated cardinality over the last staleTime window. |
| 96 | func (c *Cardinality) Estimate() uint64 { |
no outgoing calls