public ChunkCompressionMeta deepCopy() { return new ChunkCompressionMeta(this); }
__isset_bitfield = other.__isset_bitfield; if (other.isSetChunk_meta()) { this.chunk_meta = new ChunkCompressionMeta(other.chunk_meta);
__isset_bitfield = other.__isset_bitfield; if (other.isSetChunk_meta()) { this.chunk_meta = new ChunkCompressionMeta(other.chunk_meta);
/** * Right now it is set to default values. We may use this in future * set the compressor. * before 1.5.0, we set a enum 'compression_codec'; * after 1.5.0, we use string 'compressor_name' instead */ public static ChunkCompressionMeta getChunkCompressorMeta( ColumnPage inputPage, long encodedDataLength) throws IOException { ChunkCompressionMeta chunkCompressionMeta = new ChunkCompressionMeta(); // we will not use this field any longer and will use compressor_name instead, // but in thrift definition, this field is required so we cannot set it to null, otherwise // it will cause deserialization error in runtime (required field cannot be null). chunkCompressionMeta.setCompression_codec(CompressionCodec.DEPRECATED); chunkCompressionMeta.setCompressor_name(inputPage.getColumnCompressorName()); chunkCompressionMeta.setTotal_compressed_size(encodedDataLength); chunkCompressionMeta.setTotal_uncompressed_size(inputPage.getPageLengthInBytes()); return chunkCompressionMeta; }
case 1: // CHUNK_META if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.chunk_meta = new ChunkCompressionMeta(); struct.chunk_meta.read(iprot); struct.setChunk_metaIsSet(true);
case 1: // CHUNK_META if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.chunk_meta = new ChunkCompressionMeta(); struct.chunk_meta.read(iprot); struct.setChunk_metaIsSet(true);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, DataChunk struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.chunk_meta = new ChunkCompressionMeta(); struct.chunk_meta.read(iprot); struct.setChunk_metaIsSet(true);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, DataChunk2 struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.chunk_meta = new ChunkCompressionMeta(); struct.chunk_meta.read(iprot); struct.setChunk_metaIsSet(true);