@Test public void testConstruc() { FrequencySketch sketch = new FrequencySketch(512); assertThat(sketch.tableOffset, not(0L)); int size = sketch.tableLength; assertThat(sketch.tableLength, is(size)); assertThat(sketch.tableMask, is(size - 1)); assertThat(sketch.sampleSize, is(10 * size)); sketch.release(); }
void release() { if (tableOffset != 0L) Uns.free(tableOffset); tableOffset = 0L; }
FrequencySketch { void release() { if (tableOffset != 0L) Uns.free(tableOffset); tableOffset = 0L; } }
FrequencySketch { void release() { if (tableOffset != 0L) Uns.free(tableOffset); tableOffset = 0L; } FrequencySketch(long maximumSize); }
FrequencySketch { void release() { if (tableOffset != 0L) Uns.free(tableOffset); tableOffset = 0L; } FrequencySketch(long maximumSize);  }
FrequencySketch { void release() { if (tableOffset != 0L) Uns.free(tableOffset); tableOffset = 0L; } FrequencySketch(long maximumSize);   }