private BlockInfo createAndReadBlockInfo() throws IOException { BlockInfo blockInfo = new BlockInfo(); if (this.splitLength > blockInfo.getInfoSize()) { // At first we go and read the block info containing the recordCount, the accumulatedRecordCount // and the firstRecordStart offset in the current block. This is written at the end of the block and // is of fixed size, currently 3 * Long.SIZE. // TODO: seek not supported by compressed streams. Will throw exception this.stream.seek(this.splitStart + this.splitLength - blockInfo.getInfoSize()); blockInfo.read(new DataInputViewStreamWrapper(this.stream)); } return blockInfo; }
fdis.seek(file.getLen() - blockInfo.getInfoSize()); blockInfo.read(new DataInputViewStreamWrapper(fdis)); totalCount += blockInfo.getAccumulatedRecordCount();
private BlockInfo createAndReadBlockInfo() throws IOException { BlockInfo blockInfo = new BlockInfo(); if (this.splitLength > blockInfo.getInfoSize()) { // At first we go and read the block info containing the recordCount, the accumulatedRecordCount // and the firstRecordStart offset in the current block. This is written at the end of the block and // is of fixed size, currently 3 * Long.SIZE. // TODO: seek not supported by compressed streams. Will throw exception this.stream.seek(this.splitStart + this.splitLength - blockInfo.getInfoSize()); blockInfo.read(new DataInputViewStreamWrapper(this.stream)); } return blockInfo; }
private BlockInfo createAndReadBlockInfo() throws IOException { BlockInfo blockInfo = new BlockInfo(); if (this.splitLength > blockInfo.getInfoSize()) { // At first we go and read the block info containing the recordCount, the accumulatedRecordCount // and the firstRecordStart offset in the current block. This is written at the end of the block and // is of fixed size, currently 3 * Long.SIZE. // TODO: seek not supported by compressed streams. Will throw exception this.stream.seek(this.splitStart + this.splitLength - blockInfo.getInfoSize()); blockInfo.read(new DataInputViewStreamWrapper(this.stream)); } return blockInfo; }
fdis.seek(file.getLen() - blockInfo.getInfoSize()); blockInfo.read(new DataInputViewStreamWrapper(fdis)); totalCount += blockInfo.getAccumulatedRecordCount();
fdis.seek(file.getLen() - blockInfo.getInfoSize()); blockInfo.read(new DataInputViewStreamWrapper(fdis)); totalCount += blockInfo.getAccumulatedRecordCount();