/** * Performs a deep copy on <i>other</i>. */ public ColumnChunk(ColumnChunk other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetFile_path()) { this.file_path = other.file_path; } this.file_offset = other.file_offset; if (other.isSetMeta_data()) { this.meta_data = new ColumnMetaData(other.meta_data); } this.offset_index_offset = other.offset_index_offset; this.offset_index_length = other.offset_index_length; this.column_index_offset = other.column_index_offset; this.column_index_length = other.column_index_length; }
/** * Performs a deep copy on <i>other</i>. */ public ColumnChunk(ColumnChunk other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetFile_path()) { this.file_path = other.file_path; } this.file_offset = other.file_offset; if (other.isSetMeta_data()) { this.meta_data = new ColumnMetaData(other.meta_data); } this.offset_index_offset = other.offset_index_offset; this.offset_index_length = other.offset_index_length; this.column_index_offset = other.column_index_offset; this.column_index_length = other.column_index_length; }
list.add(file_offset); boolean present_meta_data = true && (isSetMeta_data()); list.add(present_meta_data); if (present_meta_data)
sb.append(this.file_offset); first = false; if (isSetMeta_data()) { if (!first) sb.append(", "); sb.append("meta_data:");
sb.append(this.file_offset); first = false; if (isSetMeta_data()) { if (!first) sb.append(", "); sb.append("meta_data:");
/** 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 java.lang.IllegalArgumentException(); } switch (field) { case FILE_PATH: return isSetFile_path(); case FILE_OFFSET: return isSetFile_offset(); case META_DATA: return isSetMeta_data(); case OFFSET_INDEX_OFFSET: return isSetOffset_index_offset(); case OFFSET_INDEX_LENGTH: return isSetOffset_index_length(); case COLUMN_INDEX_OFFSET: return isSetColumn_index_offset(); case COLUMN_INDEX_LENGTH: return isSetColumn_index_length(); } throw new java.lang.IllegalStateException(); }
/** 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 FILE_PATH: return isSetFile_path(); case FILE_OFFSET: return isSetFile_offset(); case META_DATA: return isSetMeta_data(); case OFFSET_INDEX_OFFSET: return isSetOffset_index_offset(); case OFFSET_INDEX_LENGTH: return isSetOffset_index_length(); case COLUMN_INDEX_OFFSET: return isSetColumn_index_offset(); case COLUMN_INDEX_LENGTH: return isSetColumn_index_length(); } throw new IllegalStateException(); }
lastComparison = java.lang.Boolean.valueOf(isSetMeta_data()).compareTo(other.isSetMeta_data()); if (lastComparison != 0) { return lastComparison; if (isSetMeta_data()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.meta_data, other.meta_data); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetMeta_data()).compareTo(other.isSetMeta_data()); if (lastComparison != 0) { return lastComparison; if (isSetMeta_data()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.meta_data, other.meta_data); if (lastComparison != 0) {
optionals.set(0); if (struct.isSetMeta_data()) { optionals.set(1); oprot.writeString(struct.file_path); if (struct.isSetMeta_data()) { struct.meta_data.write(oprot);
optionals.set(0); if (struct.isSetMeta_data()) { optionals.set(1); oprot.writeString(struct.file_path); if (struct.isSetMeta_data()) { struct.meta_data.write(oprot);
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetFile_path()) ? 131071 : 524287); if (isSetFile_path()) hashCode = hashCode * 8191 + file_path.hashCode(); hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(file_offset); hashCode = hashCode * 8191 + ((isSetMeta_data()) ? 131071 : 524287); if (isSetMeta_data()) hashCode = hashCode * 8191 + meta_data.hashCode(); hashCode = hashCode * 8191 + ((isSetOffset_index_offset()) ? 131071 : 524287); if (isSetOffset_index_offset()) hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(offset_index_offset); hashCode = hashCode * 8191 + ((isSetOffset_index_length()) ? 131071 : 524287); if (isSetOffset_index_length()) hashCode = hashCode * 8191 + offset_index_length; hashCode = hashCode * 8191 + ((isSetColumn_index_offset()) ? 131071 : 524287); if (isSetColumn_index_offset()) hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(column_index_offset); hashCode = hashCode * 8191 + ((isSetColumn_index_length()) ? 131071 : 524287); if (isSetColumn_index_length()) hashCode = hashCode * 8191 + column_index_length; return hashCode; }
boolean this_present_meta_data = true && this.isSetMeta_data(); boolean that_present_meta_data = true && that.isSetMeta_data(); if (this_present_meta_data || that_present_meta_data) { if (!(this_present_meta_data && that_present_meta_data))
boolean this_present_meta_data = true && this.isSetMeta_data(); boolean that_present_meta_data = true && that.isSetMeta_data(); if (this_present_meta_data || that_present_meta_data) { if (!(this_present_meta_data && that_present_meta_data))
oprot.writeFieldEnd(); if (struct.meta_data != null) { if (struct.isSetMeta_data()) { oprot.writeFieldBegin(META_DATA_FIELD_DESC); struct.meta_data.write(oprot);
oprot.writeFieldEnd(); if (struct.meta_data != null) { if (struct.isSetMeta_data()) { oprot.writeFieldBegin(META_DATA_FIELD_DESC); struct.meta_data.write(oprot);