def load_counting_hash(filename): ht = _new_counting_hash(1, [1]) ht.load(filename) return ht
def new_counting_hash(k, starting_size, n_tables=2): primes = get_n_primes_above_x(n_tables, starting_size) return _new_counting_hash(k, primes)
def new_counting_hash(k, starting_size, n_tables=2, n_threads=1): primes = get_n_primes_above_x(n_tables, starting_size) return _new_counting_hash(k, primes, n_threads)