@Test public void testCreate32FromBuilder () throws Exception { File temp = File.createTempFile("Test",".dat"); File source = new File(Filename.LITE_PATTERN_V32); Files.copy(source, temp); Dataset dataset = DatasetBuilder.file() .lastModified(new Date()) .build(temp.getPath()); ViableProvider.ensureViableProvider(new Provider(dataset)); dataset.close(); assertTrue(temp.exists()); dataset = DatasetBuilder.file() .setTempFile() .lastModified(new Date()) .build(temp.getPath()); ViableProvider.ensureViableProvider(new Provider(dataset)); dataset.close(); assertFalse(temp.exists()); }
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; }