private BlockReader createReader(Algorithm compressAlgo, BlockRegion region) throws IOException { RBlockState rbs = new RBlockState(compressAlgo, in, region, conf); return new BlockReader(rbs); }
/** * Finishing reading the block. Release all resources. */ @Override public void close() throws IOException { if (closed == true) { return; } try { // Do not set rBlkState to null. People may access stats after calling // close(). rBlkState.finish(); } finally { closed = true; } }
/** * Get the uncompressed size of the block. * * @return uncompressed size of the block. */ public long getRawSize() { return rBlkState.getBlockRegion().getRawSize(); }
/** * Finishing reading the block. Release all resources. */ @Override public void close() throws IOException { if (closed == true) { return; } try { // Do not set rBlkState to null. People may access stats after calling // close(). rBlkState.finish(); } finally { closed = true; } }
/** * Finishing reading the block. Release all resources. */ @Override public void close() throws IOException { if (closed == true) { return; } try { // Do not set rBlkState to null. People may access stats after calling // close(). rBlkState.finish(); } finally { closed = true; } }
/** * Finishing reading the block. Release all resources. */ @Override public void close() throws IOException { if (closed == true) { return; } try { // Do not set rBlkState to null. People may access stats after calling // close(). rBlkState.finish(); } finally { closed = true; } }
/** * Finishing reading the block. Release all resources. */ @Override public void close() throws IOException { if (closed == true) { return; } try { // Do not set rBlkState to null. People may access stats after calling // close(). rBlkState.finish(); } finally { closed = true; } }
BlockReader(RBlockState rbs) { super(rbs.getInputStream()); rBlkState = rbs; }
BlockReader(RBlockState rbs) { super(rbs.getInputStream()); rBlkState = rbs; }
BlockReader(RBlockState rbs) { super(rbs.getInputStream()); rBlkState = rbs; }
BlockReader(RBlockState rbs) { super(rbs.getInputStream()); rBlkState = rbs; }
/** * Get the compressed size of the block. * * @return compressed size of the block. */ public long getCompressedSize() { return rBlkState.getBlockRegion().getCompressedSize(); }
/** * Get the starting position of the block in the file. * * @return the starting position of the block in the file. */ public long getStartPos() { return rBlkState.getBlockRegion().getOffset(); } }
/** * Get the uncompressed size of the block. * * @return uncompressed size of the block. */ public long getRawSize() { return rBlkState.getBlockRegion().getRawSize(); }
/** * Get the starting position of the block in the file. * * @return the starting position of the block in the file. */ public long getStartPos() { return rBlkState.getBlockRegion().getOffset(); } }
BlockReader(RBlockState rbs) { super(rbs.getInputStream()); rBlkState = rbs; }
/** * Get the name of the compression algorithm used to compress the block. * * @return name of the compression algorithm. */ public String getCompressionName() { return rBlkState.getCompressionName(); }
/** * Get the name of the compression algorithm used to compress the block. * * @return name of the compression algorithm. */ public String getCompressionName() { return rBlkState.getCompressionName(); }
private BlockReader createReader(Algorithm compressAlgo, BlockRegion region) throws IOException { RBlockState rbs = new RBlockState(compressAlgo, in, region, conf); return new BlockReader(rbs); }
/** * Get the name of the compression algorithm used to compress the block. * * @return name of the compression algorithm. */ public String getCompressionName() { return rBlkState.getCompressionName(); }