@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_version = true; list.add(present_version); if (present_version) list.add(version); boolean present_table_columns = true && (isSetTable_columns()); list.add(present_table_columns); if (present_table_columns) list.add(table_columns); boolean present_segment_info = true && (isSetSegment_info()); list.add(present_segment_info); if (present_segment_info) list.add(segment_info); boolean present_bucket_id = true && (isSetBucket_id()); list.add(present_bucket_id); if (present_bucket_id) list.add(bucket_id); boolean present_schema_time_stamp = true && (isSetSchema_time_stamp()); list.add(present_schema_time_stamp); if (present_schema_time_stamp) list.add(schema_time_stamp); return list.hashCode(); }
/** * Performs a deep copy on <i>other</i>. */ public IndexHeader(IndexHeader other) { __isset_bitfield = other.__isset_bitfield; this.version = other.version; if (other.isSetTable_columns()) { List<org.apache.carbondata.format.ColumnSchema> __this__table_columns = new ArrayList<org.apache.carbondata.format.ColumnSchema>(other.table_columns.size()); for (org.apache.carbondata.format.ColumnSchema other_element : other.table_columns) { __this__table_columns.add(new org.apache.carbondata.format.ColumnSchema(other_element)); } this.table_columns = __this__table_columns; } if (other.isSetSegment_info()) { this.segment_info = new org.apache.carbondata.format.SegmentInfo(other.segment_info); } this.bucket_id = other.bucket_id; this.schema_time_stamp = other.schema_time_stamp; }
/** 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 TABLE_COLUMNS: return isSetTable_columns(); case SEGMENT_INFO: return isSetSegment_info(); case BUCKET_ID: return isSetBucket_id(); case SCHEMA_TIME_STAMP: return isSetSchema_time_stamp(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetSegment_info()).compareTo(other.isSetSegment_info()); if (lastComparison != 0) { return lastComparison; if (isSetSegment_info()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.segment_info, other.segment_info); if (lastComparison != 0) {
boolean this_present_segment_info = true && this.isSetSegment_info(); boolean that_present_segment_info = true && that.isSetSegment_info(); if (this_present_segment_info || that_present_segment_info) { if (!(this_present_segment_info && that_present_segment_info))