Dumpster::Counter(T)
Inherits Reference < Object
Util for tracking a set of counters associated with keys of an arbitary type.
OPTIMIZE: depending on number of entries being tracked, there may be a point where it make sense to swap this out for a count-min-sketch, but a Hash is simple for now...
Constructors
new
SourceInstance methods
count(key : T) : Count
Sourceeach(*args, **options)
Sourceeach(*args, **options, &)
Sourceincrement(key : T) : Count
Source