ActiveTimeSeriesCounter implements IActiveTimeSeriesCounter { @Override public void init(String storageGroup) { storageGroupHllMap.put(storageGroup, new HyperLogLog(LOG2M)); activeRatioMap.put(storageGroup, 0D); activeTimeSeriesNumMap.put(storageGroup, 0L); }  @Override void init(String storageGroup); @Override void offer(String storageGroup, String device, String measurement); @Override void updateActiveRatio(String storageGroup); @Override double getActiveRatio(String storageGroup); @Override void delete(String storageGroup); static ActiveTimeSeriesCounter getInstance(); static void clear();  }
@Test public void testInit() throws Exception { for (int i = 0; i < testStorageGroupNum; i++) { assertEquals(0D, ActiveTimeSeriesCounter.getInstance().getActiveRatio(storageGroups[i]), 0.0); } }