@Test @Category(UnitTest.class) public void generateSplits() { Splits splits = new PartitionerSplit(); splits.generateSplits(new TestGenerator()); PartitionerSplit.PartitionerSplitInfo[] si = (PartitionerSplit.PartitionerSplitInfo[]) splits.getSplits(); Assert.assertEquals("Splits length not correct", generated.length, si.length); for (int i = 0; i < generated.length; i++) { Assert.assertEquals("Splits entry not correct", generated[i].longValue(), si[i].getTileId()); } }
@Override public void generateSplits(SplitGenerator generator) { splits = generator.getPartitions(); }
PartitionerSplit extends Splits { @Override public void generateSplits(SplitGenerator generator) { splits = generator.getPartitions(); } }
PartitionerSplit extends Splits { @Override public void generateSplits(SplitGenerator generator) { splits = generator.getPartitions(); }  }
PartitionerSplit extends Splits { @Override public void generateSplits(SplitGenerator generator) { splits = generator.getPartitions(); }  @Override String findSplitFile(Path parent); @Override void generateSplits(SplitGenerator generator); @Override void readExternal(ObjectInput in); }
PartitionerSplit extends Splits { @Override public void generateSplits(SplitGenerator generator) { splits = generator.getPartitions(); }  @Override String findSplitFile(Path parent); @Override void generateSplits(SplitGenerator generator); @Override void readExternal(ObjectInput in); static final String SPLIT_FILE; }