File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -215,18 +215,6 @@ func (c *CMSketch) considerDefVal(cnt uint64) bool {
215
215
return (cnt == 0 || (cnt > c .defaultValue && cnt < 2 * (c .count / uint64 (c .width )))) && c .defaultValue > 0
216
216
}
217
217
218
- func updateValueBytes (c * CMSketch , t * TopN , d []byte , count uint64 ) {
219
- h1 , h2 := murmur3 .Sum128 (d )
220
- if oriCount , ok := t .QueryTopN (nil , d ); ok {
221
- if count > oriCount {
222
- t .updateTopNWithDelta (d , count - oriCount , true )
223
- } else {
224
- t .updateTopNWithDelta (d , oriCount - count , false )
225
- }
226
- }
227
- c .setValue (h1 , h2 , count )
228
- }
229
-
230
218
// setValue sets the count for value that hashed into (h1, h2), and update defaultValue if necessary.
231
219
func (c * CMSketch ) setValue (h1 , h2 uint64 , count uint64 ) {
232
220
oriCount := c .queryHashValue (nil , h1 , h2 )
You can’t perform that action at this time.
0 commit comments