@Test public void testPersistence() throws Exception { ChronicleMap<HistogramKey, AgentDigest> map = loader.get(file); map.put(key, digest); map.close(); loader = new MapLoader<>(HistogramKey.class, AgentDigest.class, 100, 200, 1000, HistogramKeyMarshaller.get(), AgentDigestMarshaller.get(), true); map = loader.get(file); assertThat(map).containsKey(key); }
public ChronicleMap<K, V> get(File f) throws Exception { Preconditions.checkNotNull(f); return maps.get(f); }
MapLoader { public ChronicleMap<K, V> get(File f) throws Exception { Preconditions.checkNotNull(f); return maps.get(f); } }
MapLoader { public ChronicleMap<K, V> get(File f) throws Exception { Preconditions.checkNotNull(f); return maps.get(f); } MapLoader(Class<K> keyClass,
                   Class<V> valueClass,
                   long entries,
                   double avgKeySize,
                   double avgValueSize,
                   KM keyMarshaller,
                   VM valueMarshaller,
                   boolean doPersist); }
MapLoader { public ChronicleMap<K, V> get(File f) throws Exception { Preconditions.checkNotNull(f); return maps.get(f); } MapLoader(Class<K> keyClass,
                   Class<V> valueClass,
                   long entries,
                   double avgKeySize,
                   double avgValueSize,
                   KM keyMarshaller,
                   VM valueMarshaller,
                   boolean doPersist); ChronicleMap<K, V> get(File f); @Override String toString(); }
MapLoader { public ChronicleMap<K, V> get(File f) throws Exception { Preconditions.checkNotNull(f); return maps.get(f); } MapLoader(Class<K> keyClass,
                   Class<V> valueClass,
                   long entries,
                   double avgKeySize,
                   double avgValueSize,
                   KM keyMarshaller,
                   VM valueMarshaller,
                   boolean doPersist); ChronicleMap<K, V> get(File f); @Override String toString();  }