@Test public void reset() { DictionaryForWrite dfw = new DictionaryForWrite(); int lastStr = dfw.getStringTable().getOrCreate("foobar"); int lastPath = dfw.getPathTable().getOrCreate(Arrays.asList("foo", "bar")); int lastTags = dfw.getTagsTable().getOrCreate(Tags.valueOf(singletonMap("baz", MetricValue.fromStrValue("baz")))); assertFalse(dfw.isEmpty()); assertEquals(0, dfw.getStringTable().getOffset()); assertEquals(0, dfw.getPathTable().getOffset()); assertEquals(0, dfw.getTagsTable().getOffset()); dfw.reset(); assertTrue(dfw.isEmpty()); assertEquals(lastStr + 1, dfw.getStringTable().getOffset()); assertEquals(lastPath + 1, dfw.getPathTable().getOffset()); assertEquals(lastTags + 1, dfw.getTagsTable().getOffset()); }
public void reset() { stringTable.reset(); pathTable.reset(); tagsTable.reset(); }
DictionaryForWrite implements Cloneable { public void reset() { stringTable.reset(); pathTable.reset(); tagsTable.reset(); } }
DictionaryForWrite implements Cloneable { public void reset() { stringTable.reset(); pathTable.reset(); tagsTable.reset(); } DictionaryForWrite();  DictionaryForWrite(DictionaryDelta input); }
DictionaryForWrite implements Cloneable { public void reset() { stringTable.reset(); pathTable.reset(); tagsTable.reset(); } DictionaryForWrite();  DictionaryForWrite(DictionaryDelta input); boolean isEmpty(); DictionaryDelta asDictionaryDelta(); void reset(); dictionary_delta encode(); @Override DictionaryForWrite clone(); }
DictionaryForWrite implements Cloneable { public void reset() { stringTable.reset(); pathTable.reset(); tagsTable.reset(); } DictionaryForWrite();  DictionaryForWrite(DictionaryDelta input); boolean isEmpty(); DictionaryDelta asDictionaryDelta(); void reset(); dictionary_delta encode(); @Override DictionaryForWrite clone();  }