@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(); }
if (isSetBucket_id()) { if (!first) sb.append(", "); sb.append("bucket_id:");
/** 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(isSetBucket_id()).compareTo(other.isSetBucket_id()); if (lastComparison != 0) { return lastComparison; if (isSetBucket_id()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bucket_id, other.bucket_id); if (lastComparison != 0) {
oprot.writeFieldEnd(); if (struct.isSetBucket_id()) { oprot.writeFieldBegin(BUCKET_ID_FIELD_DESC); oprot.writeI32(struct.bucket_id);
@Override public void write(org.apache.thrift.protocol.TProtocol prot, IndexHeader struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.version); { oprot.writeI32(struct.table_columns.size()); for (org.apache.carbondata.format.ColumnSchema _iter4 : struct.table_columns) { _iter4.write(oprot); } } struct.segment_info.write(oprot); BitSet optionals = new BitSet(); if (struct.isSetBucket_id()) { optionals.set(0); } if (struct.isSetSchema_time_stamp()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetBucket_id()) { oprot.writeI32(struct.bucket_id); } if (struct.isSetSchema_time_stamp()) { oprot.writeI64(struct.schema_time_stamp); } }
boolean this_present_bucket_id = true && this.isSetBucket_id(); boolean that_present_bucket_id = true && that.isSetBucket_id(); if (this_present_bucket_id || that_present_bucket_id) { if (!(this_present_bucket_id && that_present_bucket_id))