/** * Constructor * * @param fout * FS output stream. * @param compressionName * Name of the compression algorithm, which will be used for all * data blocks. * @throws IOException * @see Compression#getSupportedAlgorithms */ public Writer(FSDataOutputStream fout, String compressionName, Configuration conf) throws IOException { if (fout.getPos() != 0) { throw new IOException("Output file not at zero offset."); } this.out = fout; this.conf = conf; dataIndex = new DataIndex(compressionName); metaIndex = new MetaIndex(); fsOutputBuffer = new BytesWritable(); Magic.write(fout); }
dataIndex = new DataIndex(blockR); } finally { blockR.close();
/** * Constructor * * @param fout * FS output stream. * @param compressionName * Name of the compression algorithm, which will be used for all * data blocks. * @throws IOException * @see Compression#getSupportedAlgorithms */ public Writer(FSDataOutputStream fout, String compressionName, Configuration conf) throws IOException { if (fout.getPos() != 0) { throw new IOException("Output file not at zero offset."); } this.out = fout; this.conf = conf; dataIndex = new DataIndex(compressionName); metaIndex = new MetaIndex(); fsOutputBuffer = new BytesWritable(); Magic.write(fout); }
dataIndex = new DataIndex(blockR); } finally { blockR.close();
dataIndex = new DataIndex(blockR); } finally { blockR.close();
dataIndex = new DataIndex(blockR); } finally { blockR.close();
dataIndex = new DataIndex(blockR); } finally { blockR.close();
dataIndex = new DataIndex(blockR); } finally { blockR.close();
/** * Constructor * * @param fout * FS output stream. * @param compressionName * Name of the compression algorithm, which will be used for all * data blocks. * @throws IOException * @see Compression#getSupportedAlgorithms */ public Writer(FSDataOutputStream fout, String compressionName, Configuration conf) throws IOException { if (fout.getPos() != 0) { throw new IOException("Output file not at zero offset."); } this.out = fout; this.conf = conf; dataIndex = new DataIndex(compressionName); metaIndex = new MetaIndex(); fsOutputBuffer = new BytesWritable(); Magic.write(fout); }
/** * Constructor * * @param fout * FS output stream. * @param compressionName * Name of the compression algorithm, which will be used for all * data blocks. * @throws IOException * @see Compression#getSupportedAlgorithms */ public Writer(FSDataOutputStream fout, String compressionName, Configuration conf) throws IOException { if (fout.getPos() != 0) { throw new IOException("Output file not at zero offset."); } this.out = fout; this.conf = conf; dataIndex = new DataIndex(compressionName); metaIndex = new MetaIndex(); fsOutputBuffer = new BytesWritable(); Magic.write(fout); }
/** * Constructor * * @param fout * FS output stream. * @param compressionName * Name of the compression algorithm, which will be used for all * data blocks. * @throws IOException * @see Compression#getSupportedAlgorithms */ public Writer(FSDataOutputStream fout, String compressionName, Configuration conf) throws IOException { if (fout.getPos() != 0) { throw new IOException("Output file not at zero offset."); } this.out = fout; this.conf = conf; dataIndex = new DataIndex(compressionName); metaIndex = new MetaIndex(); fsOutputBuffer = new BytesWritable(); Magic.write(fout); }
/** * Constructor * * @param fout * FS output stream. * @param compressionName * Name of the compression algorithm, which will be used for all * data blocks. * @throws IOException * @see Compression#getSupportedAlgorithms */ public Writer(FSDataOutputStream fout, String compressionName, Configuration conf) throws IOException { if (fout.getPos() != 0) { throw new IOException("Output file not at zero offset."); } this.out = fout; this.conf = conf; dataIndex = new DataIndex(compressionName); metaIndex = new MetaIndex(); fsOutputBuffer = new BytesWritable(); Magic.write(fout); }