/** Initialize the stream without reading from it. */ void initialize(InputStream in, Header header) throws IOException { this.header = header; this.codec = resolveCodec(); reader.setSchema(header.schema); }
/** Initialize the stream without reading from it. */ void initialize(InputStream in, Header header) throws IOException { this.header = header; this.codec = resolveCodec(); reader.setSchema(header.schema); }
this.codec = resolveCodec(); reader.setSchema(header.schema);
this.codec = resolveCodec(); reader.setSchema(header.schema);
Codec otherCodec = otherFile.resolveCodec(); DataBlock nextBlockRaw = null; if (codec.equals(otherCodec) && !recompress) {
Codec otherCodec = otherFile.resolveCodec(); DataBlock nextBlockRaw = null; if (codec.equals(otherCodec) && !recompress) {
/** Initialize the stream without reading from it. */ void initialize(InputStream in, Header header) throws IOException { this.header = header; this.codec = resolveCodec(); reader.setSchema(header.schema); }
/** Initialize the stream without reading from it. */ void initialize(InputStream in, Header header) throws IOException { this.header = header; this.codec = resolveCodec(); reader.setSchema(header.schema); }
this.codec = resolveCodec(); reader.setSchema(header.schema);
this.codec = resolveCodec(); reader.setSchema(header.schema);
void initialize(InputStream in) throws IOException { this.vin = DecoderFactory.defaultFactory().createBinaryDecoder(in, vin); byte[] magic = new byte[DataFileConstants.MAGIC.length]; try { vin.readFixed(magic); // read magic } catch (IOException e) { throw new IOException("Not a data file."); } if (!Arrays.equals(DataFileConstants.MAGIC, magic)) throw new IOException("Not a data file."); long l = vin.readMapStart(); // read meta data if (l > 0) { do { for (long i = 0; i < l; i++) { String key = vin.readString(null).toString(); ByteBuffer value = vin.readBytes(null); byte[] bb = new byte[value.remaining()]; value.get(bb); meta.put(key, bb); } } while ((l = vin.mapNext()) != 0); } vin.readFixed(sync); // read sync this.codec = resolveCodec(); this.schema = Schema.parse(getMetaString(DataFileConstants.SCHEMA)); reader.setSchema(schema); }
void initialize(InputStream in) throws IOException { this.vin = DecoderFactory.defaultFactory().createBinaryDecoder(in, vin); byte[] magic = new byte[DataFileConstants.MAGIC.length]; try { vin.readFixed(magic); // read magic } catch (IOException e) { throw new IOException("Not a data file."); } if (!Arrays.equals(DataFileConstants.MAGIC, magic)) throw new IOException("Not a data file."); long l = vin.readMapStart(); // read meta data if (l > 0) { do { for (long i = 0; i < l; i++) { String key = vin.readString(null).toString(); ByteBuffer value = vin.readBytes(null); byte[] bb = new byte[value.remaining()]; value.get(bb); meta.put(key, bb); } } while ((l = vin.mapNext()) != 0); } vin.readFixed(sync); // read sync this.codec = resolveCodec(); this.schema = Schema.parse(getMetaString(DataFileConstants.SCHEMA)); reader.setSchema(schema); }
Codec otherCodec = otherFile.resolveCodec(); DataBlock nextBlockRaw = null; if (codec.equals(otherCodec) && !recompress) {
Codec otherCodec = otherFile.resolveCodec(); DataBlock nextBlockRaw = null; if (codec.equals(otherCodec) && !recompress) {
Codec otherCodec = otherFile.resolveCodec(); DataBlock nextBlockRaw = null; if (codec.equals(otherCodec) && !recompress) {
Codec otherCodec = otherFile.resolveCodec(); DataBlock nextBlockRaw = null; if (codec.equals(otherCodec) && !recompress) {