@Test public void testConcurrentCreationOfMultipleTables() { namesToIds.storeAsPending(table(1), 1); idsToNames.storeNewMapping(table(2), 1); assertThat(tableIndices.getTableId(table(1))).isEqualTo(2); }
public int getTableId(TableReference table) { return tableIndices.get(table); }
SweepTableIndices { public int getTableId(TableReference table) { return tableIndices.get(table); } }
SweepTableIndices { public int getTableId(TableReference table) { return tableIndices.get(table); } SweepTableIndices(IdsToNames idsToNames, NamesToIds namesToIds);  SweepTableIndices(KeyValueService kvs); }
SweepTableIndices { public int getTableId(TableReference table) { return tableIndices.get(table); } SweepTableIndices(IdsToNames idsToNames, NamesToIds namesToIds);  SweepTableIndices(KeyValueService kvs); int getTableId(TableReference table); TableReference getTableReference(int tableId); }
SweepTableIndices { public int getTableId(TableReference table) { return tableIndices.get(table); } SweepTableIndices(IdsToNames idsToNames, NamesToIds namesToIds);  SweepTableIndices(KeyValueService kvs); int getTableId(TableReference table); TableReference getTableReference(int tableId);  }