/** * Stream access to a Data Block. * * @param blockIndex * 0-based data block index. * @return BlockReader input stream for reading the data block. * @throws IOException */ public BlockReader getDataBlock(int blockIndex) throws IOException { if (blockIndex < 0 || blockIndex >= getBlockCount()) { throw new IndexOutOfBoundsException(String.format( "blockIndex=%d, numBlocks=%d", blockIndex, getBlockCount())); } BlockRegion region = dataIndex.getBlockRegionList().get(blockIndex); return createReader(dataIndex.getDefaultCompressionAlgorithm(), region); }
/** * Stream access to a Data Block. * * @param blockIndex * 0-based data block index. * @return BlockReader input stream for reading the data block. * @throws IOException */ public BlockReader getDataBlock(int blockIndex) throws IOException { if (blockIndex < 0 || blockIndex >= getBlockCount()) { throw new IndexOutOfBoundsException(String.format( "blockIndex=%d, numBlocks=%d", blockIndex, getBlockCount())); } BlockRegion region = dataIndex.getBlockRegionList().get(blockIndex); return createReader(dataIndex.getDefaultCompressionAlgorithm(), region); }
/** * Stream access to a Data Block. * * @param blockIndex * 0-based data block index. * @return BlockReader input stream for reading the data block. * @throws IOException */ public BlockReader getDataBlock(int blockIndex) throws IOException { if (blockIndex < 0 || blockIndex >= getBlockCount()) { throw new IndexOutOfBoundsException(String.format( "blockIndex=%d, numBlocks=%d", blockIndex, getBlockCount())); } BlockRegion region = dataIndex.getBlockRegionList().get(blockIndex); return createReader(dataIndex.getDefaultCompressionAlgorithm(), region); }
/** * Stream access to a Data Block. * * @param blockIndex * 0-based data block index. * @return BlockReader input stream for reading the data block. * @throws IOException */ public BlockReader getDataBlock(int blockIndex) throws IOException { if (blockIndex < 0 || blockIndex >= getBlockCount()) { throw new IndexOutOfBoundsException(String.format( "blockIndex=%d, numBlocks=%d", blockIndex, getBlockCount())); } BlockRegion region = dataIndex.getBlockRegionList().get(blockIndex); return createReader(dataIndex.getDefaultCompressionAlgorithm(), region); }
/** * Stream access to a Data Block. * * @param blockIndex * 0-based data block index. * @return BlockReader input stream for reading the data block. * @throws IOException */ public BlockReader getDataBlock(int blockIndex) throws IOException { if (blockIndex < 0 || blockIndex >= getBlockCount()) { throw new IndexOutOfBoundsException(String.format( "blockIndex=%d, numBlocks=%d", blockIndex, getBlockCount())); } BlockRegion region = dataIndex.getBlockRegionList().get(blockIndex); return createReader(dataIndex.getDefaultCompressionAlgorithm(), region); }
/** * Stream access to a Data Block. * * @param blockIndex * 0-based data block index. * @return BlockReader input stream for reading the data block. * @throws IOException */ public BlockReader getDataBlock(int blockIndex) throws IOException { if (blockIndex < 0 || blockIndex >= getBlockCount()) { throw new IndexOutOfBoundsException(String.format( "blockIndex=%d, numBlocks=%d", blockIndex, getBlockCount())); } BlockRegion region = dataIndex.getBlockRegionList().get(blockIndex); return createReader(dataIndex.getDefaultCompressionAlgorithm(), region); }
private Algorithm getDefaultCompressionAlgorithm() { return dataIndex.getDefaultCompressionAlgorithm(); }
private Algorithm getDefaultCompressionAlgorithm() { return dataIndex.getDefaultCompressionAlgorithm(); }
private Algorithm getDefaultCompressionAlgorithm() { return dataIndex.getDefaultCompressionAlgorithm(); }
private Algorithm getDefaultCompressionAlgorithm() { return dataIndex.getDefaultCompressionAlgorithm(); }
private Algorithm getDefaultCompressionAlgorithm() { return dataIndex.getDefaultCompressionAlgorithm(); }
/** * Get the name of the default compression algorithm. * * @return the name of the default compression algorithm. */ public String getDefaultCompressionName() { return dataIndex.getDefaultCompressionAlgorithm().getName(); }
/** * Get the name of the default compression algorithm. * * @return the name of the default compression algorithm. */ public String getDefaultCompressionName() { return dataIndex.getDefaultCompressionAlgorithm().getName(); }
/** * Get the name of the default compression algorithm. * * @return the name of the default compression algorithm. */ public String getDefaultCompressionName() { return dataIndex.getDefaultCompressionAlgorithm().getName(); }
/** * Get the name of the default compression algorithm. * * @return the name of the default compression algorithm. */ public String getDefaultCompressionName() { return dataIndex.getDefaultCompressionAlgorithm().getName(); }
/** * Get the name of the default compression algorithm. * * @return the name of the default compression algorithm. */ public String getDefaultCompressionName() { return dataIndex.getDefaultCompressionAlgorithm().getName(); }
private Algorithm getDefaultCompressionAlgorithm() { return dataIndex.getDefaultCompressionAlgorithm(); }
/** * Get the name of the default compression algorithm. * * @return the name of the default compression algorithm. */ public String getDefaultCompressionName() { return dataIndex.getDefaultCompressionAlgorithm().getName(); }