public class CuckooSetLong extends Object
| Modifier and Type | Field and Description |
|---|---|
static int[] |
primes |
| Constructor and Description |
|---|
CuckooSetLong(int expectedSize)
Allocate a new set to hold expectedSize values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
insert(long x) |
void |
load(long[] a)
Insert all values in the input array into the set.
|
boolean |
lookup(long x)
Return true if and only if the value x is present in the set.
|
public CuckooSetLong(int expectedSize)
expectedSize - At least the size of the set of values that will be inserted.Copyright © 2024 The Apache Software Foundation. All rights reserved.