@Test public void testClear() { long key = 611; int n = 1<<10; int size = 1<<5; SpaceSaving ss = new SpaceSaving(n, size, 10); assertFalse(ss.inc(key)); assertTrue(ss.containsKey(key)); ss.clear(); assertFalse(ss.containsKey(key)); }
void clear() { argmin = size; }
SpaceSaving { void clear() { argmin = size; } }
SpaceSaving { void clear() { argmin = size; } SpaceSaving(int n, int size, int keySize);   SpaceSaving(int n, int size); }
SpaceSaving { void clear() { argmin = size; } SpaceSaving(int n, int size, int keySize);   SpaceSaving(int n, int size); boolean containsKey(long e); int bound(long e); int getMin(); int error(long e); boolean inc(long key); String toString(); }
SpaceSaving { void clear() { argmin = size; } SpaceSaving(int n, int size, int keySize);   SpaceSaving(int n, int size); boolean containsKey(long e); int bound(long e); int getMin(); int error(long e); boolean inc(long key); String toString();  }