@Test @Category(UnitTest.class) public void testClose() throws Exception { subject = createDefaultSubject(firstPartitionTileIds[0], firstPartitionTileIds[firstPartitionTileIds.length - 1]); subject.close(); verify(firstPartitionMockMapFileReader, atLeastOnce()).close(); }
@Override public void close() throws IOException { if (mapfile != null) { mapfile.close(); mapfile = null; } }
HdfsImageResultScanner implements CloseableKVIterator<TileIdWritable, MrGeoRaster> { @Override public void close() throws IOException { if (mapfile != null) { mapfile.close(); mapfile = null; } } }
HdfsImageResultScanner implements CloseableKVIterator<TileIdWritable, MrGeoRaster> { @Override public void close() throws IOException { if (mapfile != null) { mapfile.close(); mapfile = null; } } HdfsImageResultScanner(LongRectangle bounds,
    HdfsMrsImageReader reader);   HdfsImageResultScanner(TileIdWritable startKey, TileIdWritable endKey,
    HdfsMrsImageReader reader); }
HdfsImageResultScanner implements CloseableKVIterator<TileIdWritable, MrGeoRaster> { @Override public void close() throws IOException { if (mapfile != null) { mapfile.close(); mapfile = null; } } HdfsImageResultScanner(LongRectangle bounds,
    HdfsMrsImageReader reader);   HdfsImageResultScanner(TileIdWritable startKey, TileIdWritable endKey,
    HdfsMrsImageReader reader); @Override void close(); @Override TileIdWritable currentKey(); @Override MrGeoRaster currentValue(); @Override boolean hasNext(); @Override MrGeoRaster next(); @Override void remove(); }
HdfsImageResultScanner implements CloseableKVIterator<TileIdWritable, MrGeoRaster> { @Override public void close() throws IOException { if (mapfile != null) { mapfile.close(); mapfile = null; } } HdfsImageResultScanner(LongRectangle bounds,
    HdfsMrsImageReader reader);   HdfsImageResultScanner(TileIdWritable startKey, TileIdWritable endKey,
    HdfsMrsImageReader reader); @Override void close(); @Override TileIdWritable currentKey(); @Override MrGeoRaster currentValue(); @Override boolean hasNext(); @Override MrGeoRaster next(); @Override void remove();  }