list.add(sync_marker); boolean present_compressor_name = true && (isSetCompressor_name()); list.add(present_compressor_name); if (present_compressor_name)
if (isSetCompressor_name()) { if (!first) sb.append(", "); sb.append("compressor_name:");
/** * Performs a deep copy on <i>other</i>. */ public FileHeader(FileHeader other) { __isset_bitfield = other.__isset_bitfield; this.version = other.version; if (other.isSetColumn_schema()) { List<org.apache.carbondata.format.ColumnSchema> __this__column_schema = new ArrayList<org.apache.carbondata.format.ColumnSchema>(other.column_schema.size()); for (org.apache.carbondata.format.ColumnSchema other_element : other.column_schema) { __this__column_schema.add(new org.apache.carbondata.format.ColumnSchema(other_element)); } this.column_schema = __this__column_schema; } this.is_footer_present = other.is_footer_present; this.time_stamp = other.time_stamp; this.is_splitable = other.is_splitable; if (other.isSetSync_marker()) { this.sync_marker = org.apache.thrift.TBaseHelper.copyBinary(other.sync_marker); } if (other.isSetCompressor_name()) { this.compressor_name = other.compressor_name; } }
lastComparison = Boolean.valueOf(isSetCompressor_name()).compareTo(other.isSetCompressor_name()); if (lastComparison != 0) { return lastComparison; if (isSetCompressor_name()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compressor_name, other.compressor_name); if (lastComparison != 0) {
if (struct.isSetCompressor_name()) { oprot.writeFieldBegin(COMPRESSOR_NAME_FIELD_DESC); oprot.writeString(struct.compressor_name);
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case VERSION: return isSetVersion(); case COLUMN_SCHEMA: return isSetColumn_schema(); case IS_FOOTER_PRESENT: return isSetIs_footer_present(); case TIME_STAMP: return isSetTime_stamp(); case IS_SPLITABLE: return isSetIs_splitable(); case SYNC_MARKER: return isSetSync_marker(); case COMPRESSOR_NAME: return isSetCompressor_name(); } throw new IllegalStateException(); }
private byte[] getSyncMarker(String filePath) throws IOException { CarbonHeaderReader headerReader = new CarbonHeaderReader(filePath); FileHeader header = headerReader.readHeader(); // legacy store does not have this member if (header.isSetCompressor_name()) { compressorName = header.getCompressor_name(); } else { compressorName = CompressorFactory.NativeSupportedCompressor.SNAPPY.getName(); } return header.getSync_marker(); }
boolean this_present_compressor_name = true && this.isSetCompressor_name(); boolean that_present_compressor_name = true && that.isSetCompressor_name(); if (this_present_compressor_name || that_present_compressor_name) { if (!(this_present_compressor_name && that_present_compressor_name))
optionals.set(3); if (struct.isSetCompressor_name()) { optionals.set(4); oprot.writeBinary(struct.sync_marker); if (struct.isSetCompressor_name()) { oprot.writeString(struct.compressor_name);
if (header.isSetCompressor_name()) { compressorName = header.getCompressor_name(); } else {