@Test @Category(UnitTest.class) public void testGetZoomName() throws Exception { String returnPath = HdfsMrsPyramidInputFormat.getZoomName(mockImageDataProvider, zoomLevel); Assert.assertTrue(returnPath.contains(resourcePathString)); Assert.assertTrue(returnPath.contains(imageString)); Assert.assertTrue(returnPath.endsWith(String.valueOf(zoomLevel))); }
public static String getZoomName(HdfsMrsImageDataProvider dp, int zoomLevel) { try { MrsPyramid pyramid = MrsPyramid.open(dp); MrsPyramidMetadata metadata = pyramid.getMetadata(); String zoomName = metadata.getName(zoomLevel); if (zoomName != null) { return new Path(dp.getResourcePath(true), zoomName).toUri().toString(); } } catch (IOException e) { log.error("Error getting zoom name", e); } return null; }
HdfsMrsPyramidInputFormat extends InputFormat<TileIdWritable, RasterWritable> { public static String getZoomName(HdfsMrsImageDataProvider dp, int zoomLevel) { try { MrsPyramid pyramid = MrsPyramid.open(dp); MrsPyramidMetadata metadata = pyramid.getMetadata(); String zoomName = metadata.getName(zoomLevel); if (zoomName != null) { return new Path(dp.getResourcePath(true), zoomName).toUri().toString(); } } catch (IOException e) { log.error("Error getting zoom name", e); } return null; } }
HdfsMrsPyramidInputFormat extends InputFormat<TileIdWritable, RasterWritable> { public static String getZoomName(HdfsMrsImageDataProvider dp, int zoomLevel) { try { MrsPyramid pyramid = MrsPyramid.open(dp); MrsPyramidMetadata metadata = pyramid.getMetadata(); String zoomName = metadata.getName(zoomLevel); if (zoomName != null) { return new Path(dp.getResourcePath(true), zoomName).toUri().toString(); } } catch (IOException e) { log.error("Error getting zoom name", e); } return null; } HdfsMrsPyramidInputFormat();  HdfsMrsPyramidInputFormat(String input); }
HdfsMrsPyramidInputFormat extends InputFormat<TileIdWritable, RasterWritable> { public static String getZoomName(HdfsMrsImageDataProvider dp, int zoomLevel) { try { MrsPyramid pyramid = MrsPyramid.open(dp); MrsPyramidMetadata metadata = pyramid.getMetadata(); String zoomName = metadata.getName(zoomLevel); if (zoomName != null) { return new Path(dp.getResourcePath(true), zoomName).toUri().toString(); } } catch (IOException e) { log.error("Error getting zoom name", e); } return null; } HdfsMrsPyramidInputFormat();  HdfsMrsPyramidInputFormat(String input); static String getZoomName(HdfsMrsImageDataProvider dp,
    int zoomLevel); static void setInputInfo(Job job, String inputWithZoom); @Override RecordReader<TileIdWritable, RasterWritable> createRecordReader(InputSplit split,
    TaskAttemptContext context); @Override List<InputSplit> getSplits(JobContext context); }
HdfsMrsPyramidInputFormat extends InputFormat<TileIdWritable, RasterWritable> { public static String getZoomName(HdfsMrsImageDataProvider dp, int zoomLevel) { try { MrsPyramid pyramid = MrsPyramid.open(dp); MrsPyramidMetadata metadata = pyramid.getMetadata(); String zoomName = metadata.getName(zoomLevel); if (zoomName != null) { return new Path(dp.getResourcePath(true), zoomName).toUri().toString(); } } catch (IOException e) { log.error("Error getting zoom name", e); } return null; } HdfsMrsPyramidInputFormat();  HdfsMrsPyramidInputFormat(String input); static String getZoomName(HdfsMrsImageDataProvider dp,
    int zoomLevel); static void setInputInfo(Job job, String inputWithZoom); @Override RecordReader<TileIdWritable, RasterWritable> createRecordReader(InputSplit split,
    TaskAttemptContext context); @Override List<InputSplit> getSplits(JobContext context);  }