@Override public void run() { try { runJob( organizationSet.getTableId(), organizationSet.getBucketNumber(), organizationSet.getShards()); } catch (IOException e) { throw Throwables.propagate(e); } }
@Test public void testNonTemporalSizeBasedOrganizationSet() throws Exception { List<ShardIndexInfo> inputShards = ImmutableList.of( shardWithSize(10, 70), shardWithSize(10, 20), shardWithSize(10, 30), shardWithSize(10, 120)); Set<OrganizationSet> compactionSets = compactionSetCreator.createCompactionSets(tableInfo, inputShards); Set<UUID> actual = new HashSet<>(); for (OrganizationSet set : compactionSets) { actual.addAll(set.getShards()); } assertTrue(extractIndexes(inputShards, 0, 1, 2).containsAll(actual)); }