@Override public java.lang.String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder("DictionaryPageHeader("); boolean first = true; sb.append("num_values:"); sb.append(this.num_values); first = false; if (!first) sb.append(", "); sb.append("encoding:"); if (this.encoding == null) { sb.append("null"); } else { sb.append(this.encoding); } first = false; if (isSetIs_sorted()) { if (!first) sb.append(", "); sb.append("is_sorted:"); sb.append(this.is_sorted); first = false; } sb.append(")"); return sb.toString(); }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + num_values; hashCode = hashCode * 8191 + ((isSetEncoding()) ? 131071 : 524287); if (isSetEncoding()) hashCode = hashCode * 8191 + encoding.getValue(); hashCode = hashCode * 8191 + ((isSetIs_sorted()) ? 131071 : 524287); if (isSetIs_sorted()) hashCode = hashCode * 8191 + ((is_sorted) ? 131071 : 524287); return hashCode; }
@Override public String toString() { StringBuilder sb = new StringBuilder("DictionaryPageHeader("); boolean first = true; sb.append("num_values:"); sb.append(this.num_values); first = false; if (!first) sb.append(", "); sb.append("encoding:"); if (this.encoding == null) { sb.append("null"); } else { sb.append(this.encoding); } first = false; if (isSetIs_sorted()) { if (!first) sb.append(", "); sb.append("is_sorted:"); sb.append(this.is_sorted); first = false; } sb.append(")"); return sb.toString(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_num_values = true; list.add(present_num_values); if (present_num_values) list.add(num_values); boolean present_encoding = true && (isSetEncoding()); list.add(present_encoding); if (present_encoding) list.add(encoding.getValue()); boolean present_is_sorted = true && (isSetIs_sorted()); list.add(present_is_sorted); if (present_is_sorted) list.add(is_sorted); return list.hashCode(); }
/** 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 NUM_VALUES: return isSetNum_values(); case ENCODING: return isSetEncoding(); case IS_SORTED: return isSetIs_sorted(); } throw new 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 java.lang.IllegalArgumentException(); } switch (field) { case NUM_VALUES: return isSetNum_values(); case ENCODING: return isSetEncoding(); case IS_SORTED: return isSetIs_sorted(); } throw new java.lang.IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, DictionaryPageHeader struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.num_values); oprot.writeI32(struct.encoding.getValue()); BitSet optionals = new BitSet(); if (struct.isSetIs_sorted()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetIs_sorted()) { oprot.writeBool(struct.is_sorted); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, DictionaryPageHeader struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeI32(struct.num_values); oprot.writeI32(struct.encoding.getValue()); java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIs_sorted()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetIs_sorted()) { oprot.writeBool(struct.is_sorted); } }
public boolean equals(DictionaryPageHeader that) { if (that == null) return false; boolean this_present_num_values = true; boolean that_present_num_values = true; if (this_present_num_values || that_present_num_values) { if (!(this_present_num_values && that_present_num_values)) return false; if (this.num_values != that.num_values) return false; } boolean this_present_encoding = true && this.isSetEncoding(); boolean that_present_encoding = true && that.isSetEncoding(); if (this_present_encoding || that_present_encoding) { if (!(this_present_encoding && that_present_encoding)) return false; if (!this.encoding.equals(that.encoding)) return false; } boolean this_present_is_sorted = true && this.isSetIs_sorted(); boolean that_present_is_sorted = true && that.isSetIs_sorted(); if (this_present_is_sorted || that_present_is_sorted) { if (!(this_present_is_sorted && that_present_is_sorted)) return false; if (this.is_sorted != that.is_sorted) return false; } return true; }
boolean this_present_is_sorted = true && this.isSetIs_sorted(); boolean that_present_is_sorted = true && that.isSetIs_sorted(); if (this_present_is_sorted || that_present_is_sorted) { if (!(this_present_is_sorted && that_present_is_sorted))
lastComparison = Boolean.valueOf(isSetIs_sorted()).compareTo(other.isSetIs_sorted()); if (lastComparison != 0) { return lastComparison; if (isSetIs_sorted()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.is_sorted, other.is_sorted); if (lastComparison != 0) {
lastComparison = java.lang.Boolean.valueOf(isSetIs_sorted()).compareTo(other.isSetIs_sorted()); if (lastComparison != 0) { return lastComparison; if (isSetIs_sorted()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.is_sorted, other.is_sorted); if (lastComparison != 0) {
public void write(org.apache.thrift.protocol.TProtocol oprot, DictionaryPageHeader struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(NUM_VALUES_FIELD_DESC); oprot.writeI32(struct.num_values); oprot.writeFieldEnd(); if (struct.encoding != null) { oprot.writeFieldBegin(ENCODING_FIELD_DESC); oprot.writeI32(struct.encoding.getValue()); oprot.writeFieldEnd(); } if (struct.isSetIs_sorted()) { oprot.writeFieldBegin(IS_SORTED_FIELD_DESC); oprot.writeBool(struct.is_sorted); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, DictionaryPageHeader struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(NUM_VALUES_FIELD_DESC); oprot.writeI32(struct.num_values); oprot.writeFieldEnd(); if (struct.encoding != null) { oprot.writeFieldBegin(ENCODING_FIELD_DESC); oprot.writeI32(struct.encoding.getValue()); oprot.writeFieldEnd(); } if (struct.isSetIs_sorted()) { oprot.writeFieldBegin(IS_SORTED_FIELD_DESC); oprot.writeBool(struct.is_sorted); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }