boolean this_present_segment_id = true && this.isSetSegment_id(); boolean that_present_segment_id = true && that.isSetSegment_id(); if (this_present_segment_id || that_present_segment_id) { if (!(this_present_segment_id && that_present_segment_id))
sb.append(this.chunk_count); first = false; if (isSetSegment_id()) { if (!first) sb.append(", "); sb.append("segment_id:");
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_min_surrogate_key = true; list.add(present_min_surrogate_key); if (present_min_surrogate_key) list.add(min_surrogate_key); boolean present_max_surrogate_key = true; list.add(present_max_surrogate_key); if (present_max_surrogate_key) list.add(max_surrogate_key); boolean present_start_offset = true; list.add(present_start_offset); if (present_start_offset) list.add(start_offset); boolean present_end_offset = true; list.add(present_end_offset); if (present_end_offset) list.add(end_offset); boolean present_chunk_count = true; list.add(present_chunk_count); if (present_chunk_count) list.add(chunk_count); boolean present_segment_id = true && (isSetSegment_id()); list.add(present_segment_id); if (present_segment_id) list.add(segment_id); return list.hashCode(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, ColumnDictionaryChunkMeta struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(MIN_SURROGATE_KEY_FIELD_DESC); oprot.writeI32(struct.min_surrogate_key); oprot.writeFieldEnd(); oprot.writeFieldBegin(MAX_SURROGATE_KEY_FIELD_DESC); oprot.writeI32(struct.max_surrogate_key); oprot.writeFieldEnd(); oprot.writeFieldBegin(START_OFFSET_FIELD_DESC); oprot.writeI64(struct.start_offset); oprot.writeFieldEnd(); oprot.writeFieldBegin(END_OFFSET_FIELD_DESC); oprot.writeI64(struct.end_offset); oprot.writeFieldEnd(); oprot.writeFieldBegin(CHUNK_COUNT_FIELD_DESC); oprot.writeI32(struct.chunk_count); oprot.writeFieldEnd(); if (struct.isSetSegment_id()) { oprot.writeFieldBegin(SEGMENT_ID_FIELD_DESC); oprot.writeI64(struct.segment_id); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, ColumnDictionaryChunkMeta struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.min_surrogate_key); oprot.writeI32(struct.max_surrogate_key); oprot.writeI64(struct.start_offset); oprot.writeI64(struct.end_offset); oprot.writeI32(struct.chunk_count); BitSet optionals = new BitSet(); if (struct.isSetSegment_id()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetSegment_id()) { oprot.writeI64(struct.segment_id); } }
lastComparison = Boolean.valueOf(isSetSegment_id()).compareTo(other.isSetSegment_id()); if (lastComparison != 0) { return lastComparison; if (isSetSegment_id()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.segment_id, other.segment_id); if (lastComparison != 0) {
/** 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 MIN_SURROGATE_KEY: return isSetMin_surrogate_key(); case MAX_SURROGATE_KEY: return isSetMax_surrogate_key(); case START_OFFSET: return isSetStart_offset(); case END_OFFSET: return isSetEnd_offset(); case CHUNK_COUNT: return isSetChunk_count(); case SEGMENT_ID: return isSetSegment_id(); } throw new IllegalStateException(); }