public Extract createExtract(TableType type, String namespace, String table) { return this.extractFactory.getUniqueExtract(type, namespace, table); }
/** * Verify that each {@link Extract} created by an {@ExtractFactory} has a unique ID. */ @Test public void testGetUniqueExtract() { ExtractFactory extractFactory = new ExtractFactory("yyyyMMddHHmmss"); Set<String> extractIDs = Sets.newHashSet(); int numOfExtracts = 100; for (int i = 0; i < numOfExtracts; i++) { extractIDs .add(extractFactory.getUniqueExtract(Extract.TableType.APPEND_ONLY, "namespace", "table").getExtractId()); } Assert.assertEquals(extractIDs.size(), numOfExtracts); } }
private Extract newExtract(Extract.TableType tableType, String namespace, String table) { return _extractFactory.getUniqueExtract(tableType, namespace, table); }
public Extract createExtract(TableType type, String namespace, String table) { return this.extractFactory.getUniqueExtract(type, namespace, table); }
private Extract newExtract(Extract.TableType tableType, String namespace, String table) { return _extractFactory.getUniqueExtract(tableType, namespace, table); }