@Test public void testAddDefaultCaches () throws IOException { IndirectDataset dataset = DatasetBuilder.file() .configureDefaultCaches() .build(Filename.LITE_PATTERN_V32); assertEquals(LruCache.class, dataset.getCache(StringsCache).getClass()); assertEquals(LruCache.class, dataset.getCache(SignaturesCache).getClass()); assertEquals(LruCache.class, dataset.getCache(NodesCache).getClass()); assertEquals(LruCache.class, dataset.getCache(ValuesCache).getClass()); assertEquals(LruCache.class, dataset.getCache(ProfilesCache).getClass()); }
public static BuildFromFile file() { return new DatasetBuilder().new BuildFromFile(); }
DatasetBuilder { public static BuildFromFile file() { return new DatasetBuilder().new BuildFromFile(); } }
DatasetBuilder { public static BuildFromFile file() { return new DatasetBuilder().new BuildFromFile(); } private  DatasetBuilder(); }
DatasetBuilder { public static BuildFromFile file() { return new DatasetBuilder().new BuildFromFile(); } private  DatasetBuilder(); static BuildFromFile file(); static BuildFromBuffer buffer(); }
DatasetBuilder { public static BuildFromFile file() { return new DatasetBuilder().new BuildFromFile(); } private  DatasetBuilder(); static BuildFromFile file(); static BuildFromBuffer buffer(); static final int STRINGS_CACHE_SIZE; static final int NODES_CACHE_SIZE; static final int VALUES_CACHE_SIZE; static final int PROFILES_CACHE_SIZE; static final int SIGNATURES_CACHE_SIZE; }