@Test @Category(UnitTest.class) public void getPartitionsPositiveIncrement() throws Exception { subject = createSubject(1); SplitInfo[] partitions = subject.getPartitions(); Assert.assertEquals(bounds.getMaxY() - bounds.getMinY() + 1, partitions.length); }
@Override public SplitInfo[] getPartitions() { List<PartitionerSplitInfo> splits = new ArrayList<>(); if (increment > 0) { int partition = 0; for (long i = minTileY + increment - 1; i < maxTileY; i += increment, partition++) { splits.add(new PartitionerSplitInfo( TMSUtils.tileid(maxTileX, i, zoomLevel), partition)); } splits.add(new PartitionerSplitInfo( TMSUtils.tileid(maxTileX, maxTileY, zoomLevel), partition)); } return splits.toArray(new PartitionerSplitInfo[splits.size()]); }
ImageSplitGenerator implements SplitGenerator { @Override public SplitInfo[] getPartitions() { List<PartitionerSplitInfo> splits = new ArrayList<>(); if (increment > 0) { int partition = 0; for (long i = minTileY + increment - 1; i < maxTileY; i += increment, partition++) { splits.add(new PartitionerSplitInfo( TMSUtils.tileid(maxTileX, i, zoomLevel), partition)); } splits.add(new PartitionerSplitInfo( TMSUtils.tileid(maxTileX, maxTileY, zoomLevel), partition)); } return splits.toArray(new PartitionerSplitInfo[splits.size()]); } }
ImageSplitGenerator implements SplitGenerator { @Override public SplitInfo[] getPartitions() { List<PartitionerSplitInfo> splits = new ArrayList<>(); if (increment > 0) { int partition = 0; for (long i = minTileY + increment - 1; i < maxTileY; i += increment, partition++) { splits.add(new PartitionerSplitInfo( TMSUtils.tileid(maxTileX, i, zoomLevel), partition)); } splits.add(new PartitionerSplitInfo( TMSUtils.tileid(maxTileX, maxTileY, zoomLevel), partition)); } return splits.toArray(new PartitionerSplitInfo[splits.size()]); } ImageSplitGenerator(long minTileX, long minTileY,
    long maxTileX, long maxTileY,
    int zoomLevel, int increment);  ImageSplitGenerator(LongRectangle tileBounds,
    int zoomLevel, int tileSizeBytes, long blockSizeBytes);  ImageSplitGenerator(LongRectangle tileBounds,
    int zoomLevel, int tileSizeBytes,
    long blockSizeBytes, int maxPartitions); }
ImageSplitGenerator implements SplitGenerator { @Override public SplitInfo[] getPartitions() { List<PartitionerSplitInfo> splits = new ArrayList<>(); if (increment > 0) { int partition = 0; for (long i = minTileY + increment - 1; i < maxTileY; i += increment, partition++) { splits.add(new PartitionerSplitInfo( TMSUtils.tileid(maxTileX, i, zoomLevel), partition)); } splits.add(new PartitionerSplitInfo( TMSUtils.tileid(maxTileX, maxTileY, zoomLevel), partition)); } return splits.toArray(new PartitionerSplitInfo[splits.size()]); } ImageSplitGenerator(long minTileX, long minTileY,
    long maxTileX, long maxTileY,
    int zoomLevel, int increment);  ImageSplitGenerator(LongRectangle tileBounds,
    int zoomLevel, int tileSizeBytes, long blockSizeBytes);  ImageSplitGenerator(LongRectangle tileBounds,
    int zoomLevel, int tileSizeBytes,
    long blockSizeBytes, int maxPartitions); @Override SplitInfo[] getSplits(); @Override SplitInfo[] getPartitions(); }
ImageSplitGenerator implements SplitGenerator { @Override public SplitInfo[] getPartitions() { List<PartitionerSplitInfo> splits = new ArrayList<>(); if (increment > 0) { int partition = 0; for (long i = minTileY + increment - 1; i < maxTileY; i += increment, partition++) { splits.add(new PartitionerSplitInfo( TMSUtils.tileid(maxTileX, i, zoomLevel), partition)); } splits.add(new PartitionerSplitInfo( TMSUtils.tileid(maxTileX, maxTileY, zoomLevel), partition)); } return splits.toArray(new PartitionerSplitInfo[splits.size()]); } ImageSplitGenerator(long minTileX, long minTileY,
    long maxTileX, long maxTileY,
    int zoomLevel, int increment);  ImageSplitGenerator(LongRectangle tileBounds,
    int zoomLevel, int tileSizeBytes, long blockSizeBytes);  ImageSplitGenerator(LongRectangle tileBounds,
    int zoomLevel, int tileSizeBytes,
    long blockSizeBytes, int maxPartitions); @Override SplitInfo[] getSplits(); @Override SplitInfo[] getPartitions();  }