@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_file_path = true && (isSetFile_path()); builder.append(present_file_path); if (present_file_path) builder.append(file_path); boolean present_file_offset = true; builder.append(present_file_offset); if (present_file_offset) builder.append(file_offset); boolean present_meta_data = true && (isSetMeta_data()); builder.append(present_meta_data); if (present_meta_data) builder.append(meta_data); return builder.toHashCode(); }
/** * Performs a deep copy on <i>other</i>. */ public ColumnChunk(ColumnChunk other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); 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); } }
/** * Performs a deep copy on <i>other</i>. */ public ColumnChunk(ColumnChunk other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); 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); } }
/** Returns true if field corresponding to fieldID is set (has been asigned 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(); } throw new IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been asigned 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(); } throw new IllegalStateException(); }
@Override public String toString() { StringBuilder sb = new StringBuilder("ColumnChunk("); boolean first = true; if (isSetFile_path()) { sb.append("file_path:"); if (this.file_path == null) { sb.append("null"); } else { sb.append(this.file_path); } first = false; } if (!first) sb.append(", "); sb.append("file_offset:"); sb.append(this.file_offset); first = false; if (isSetMeta_data()) { if (!first) sb.append(", "); sb.append("meta_data:"); if (this.meta_data == null) { sb.append("null"); } else { sb.append(this.meta_data); } first = false; } sb.append(")"); return sb.toString(); }
@Override public String toString() { StringBuilder sb = new StringBuilder("ColumnChunk("); boolean first = true; if (isSetFile_path()) { sb.append("file_path:"); if (this.file_path == null) { sb.append("null"); } else { sb.append(this.file_path); } first = false; } if (!first) sb.append(", "); sb.append("file_offset:"); sb.append(this.file_offset); first = false; if (isSetMeta_data()) { if (!first) sb.append(", "); sb.append("meta_data:"); if (this.meta_data == null) { sb.append("null"); } else { sb.append(this.meta_data); } first = false; } sb.append(")"); return sb.toString(); }
public boolean equals(ColumnChunk that) { if (that == null) return false; boolean this_present_file_path = true && this.isSetFile_path(); boolean that_present_file_path = true && that.isSetFile_path(); if (this_present_file_path || that_present_file_path) { if (!(this_present_file_path && that_present_file_path)) return false; if (!this.file_path.equals(that.file_path)) return false; } boolean this_present_file_offset = true; boolean that_present_file_offset = true; if (this_present_file_offset || that_present_file_offset) { if (!(this_present_file_offset && that_present_file_offset)) return false; if (this.file_offset != that.file_offset) return false; } 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)) return false; if (!this.meta_data.equals(that.meta_data)) return false; } return true; }
public boolean equals(ColumnChunk that) { if (that == null) return false; boolean this_present_file_path = true && this.isSetFile_path(); boolean that_present_file_path = true && that.isSetFile_path(); if (this_present_file_path || that_present_file_path) { if (!(this_present_file_path && that_present_file_path)) return false; if (!this.file_path.equals(that.file_path)) return false; } boolean this_present_file_offset = true; boolean that_present_file_offset = true; if (this_present_file_offset || that_present_file_offset) { if (!(this_present_file_offset && that_present_file_offset)) return false; if (this.file_offset != that.file_offset) return false; } 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)) return false; if (!this.meta_data.equals(that.meta_data)) return false; } return true; }
ColumnChunk typedOther = (ColumnChunk)other; lastComparison = Boolean.valueOf(isSetFile_path()).compareTo(typedOther.isSetFile_path()); if (lastComparison != 0) { return lastComparison; if (isSetFile_path()) { lastComparison = TBaseHelper.compareTo(this.file_path, typedOther.file_path); if (lastComparison != 0) {
ColumnChunk typedOther = (ColumnChunk)other; lastComparison = Boolean.valueOf(isSetFile_path()).compareTo(typedOther.isSetFile_path()); if (lastComparison != 0) { return lastComparison; if (isSetFile_path()) { lastComparison = TBaseHelper.compareTo(this.file_path, typedOther.file_path); if (lastComparison != 0) {
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_file_path = true && (isSetFile_path()); builder.append(present_file_path); if (present_file_path) builder.append(file_path); boolean present_file_offset = true; builder.append(present_file_offset); if (present_file_offset) builder.append(file_offset); boolean present_meta_data = true && (isSetMeta_data()); builder.append(present_meta_data); if (present_meta_data) builder.append(meta_data); return builder.toHashCode(); }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.file_path != null) { if (isSetFile_path()) { oprot.writeFieldBegin(FILE_PATH_FIELD_DESC); oprot.writeString(this.file_path); oprot.writeFieldEnd(); } } oprot.writeFieldBegin(FILE_OFFSET_FIELD_DESC); oprot.writeI64(this.file_offset); oprot.writeFieldEnd(); if (this.meta_data != null) { if (isSetMeta_data()) { oprot.writeFieldBegin(META_DATA_FIELD_DESC); this.meta_data.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.file_path != null) { if (isSetFile_path()) { oprot.writeFieldBegin(FILE_PATH_FIELD_DESC); oprot.writeString(this.file_path); oprot.writeFieldEnd(); } } oprot.writeFieldBegin(FILE_OFFSET_FIELD_DESC); oprot.writeI64(this.file_offset); oprot.writeFieldEnd(); if (this.meta_data != null) { if (isSetMeta_data()) { oprot.writeFieldBegin(META_DATA_FIELD_DESC); this.meta_data.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }