/** * 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<Object> list = new ArrayList<Object>(); boolean present_file_path = true && (isSetFile_path()); list.add(present_file_path); if (present_file_path)
boolean first = true; if (isSetFile_path()) { sb.append("file_path:"); if (this.file_path == null) {
boolean first = true; if (isSetFile_path()) { sb.append("file_path:"); if (this.file_path == null) {
/** 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(isSetFile_path()).compareTo(other.isSetFile_path()); if (lastComparison != 0) { return lastComparison; if (isSetFile_path()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.file_path, other.file_path); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetFile_path()).compareTo(other.isSetFile_path()); if (lastComparison != 0) { return lastComparison; if (isSetFile_path()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.file_path, other.file_path); if (lastComparison != 0) {
oprot.writeI64(struct.file_offset); java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetFile_path()) { optionals.set(0); if (struct.isSetFile_path()) { oprot.writeString(struct.file_path);
oprot.writeI64(struct.file_offset); BitSet optionals = new BitSet(); if (struct.isSetFile_path()) { optionals.set(0); if (struct.isSetFile_path()) { oprot.writeString(struct.file_path);
@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; }
return true; 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; 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))
if (struct.isSetFile_path()) { oprot.writeFieldBegin(FILE_PATH_FIELD_DESC); oprot.writeString(struct.file_path);
if (struct.isSetFile_path()) { oprot.writeFieldBegin(FILE_PATH_FIELD_DESC); oprot.writeString(struct.file_path);