first = false; if (isSetStatistics()) { if (!first) sb.append(", "); sb.append("statistics:");
first = false; if (isSetStatistics()) { if (!first) sb.append(", "); sb.append("statistics:");
/** * Performs a deep copy on <i>other</i>. */ public DataPageHeaderV2(DataPageHeaderV2 other) { __isset_bitfield = other.__isset_bitfield; this.num_values = other.num_values; this.num_nulls = other.num_nulls; this.num_rows = other.num_rows; if (other.isSetEncoding()) { this.encoding = other.encoding; } this.definition_levels_byte_length = other.definition_levels_byte_length; this.repetition_levels_byte_length = other.repetition_levels_byte_length; this.is_compressed = other.is_compressed; if (other.isSetStatistics()) { this.statistics = new Statistics(other.statistics); } }
list.add(is_compressed); boolean present_statistics = true && (isSetStatistics()); list.add(present_statistics); if (present_statistics)
/** * Performs a deep copy on <i>other</i>. */ public DataPageHeaderV2(DataPageHeaderV2 other) { __isset_bitfield = other.__isset_bitfield; this.num_values = other.num_values; this.num_nulls = other.num_nulls; this.num_rows = other.num_rows; if (other.isSetEncoding()) { this.encoding = other.encoding; } this.definition_levels_byte_length = other.definition_levels_byte_length; this.repetition_levels_byte_length = other.repetition_levels_byte_length; this.is_compressed = other.is_compressed; if (other.isSetStatistics()) { this.statistics = new Statistics(other.statistics); } }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + num_values; hashCode = hashCode * 8191 + num_nulls; hashCode = hashCode * 8191 + num_rows; hashCode = hashCode * 8191 + ((isSetEncoding()) ? 131071 : 524287); if (isSetEncoding()) hashCode = hashCode * 8191 + encoding.getValue(); hashCode = hashCode * 8191 + definition_levels_byte_length; hashCode = hashCode * 8191 + repetition_levels_byte_length; hashCode = hashCode * 8191 + ((isSetIs_compressed()) ? 131071 : 524287); if (isSetIs_compressed()) hashCode = hashCode * 8191 + ((is_compressed) ? 131071 : 524287); hashCode = hashCode * 8191 + ((isSetStatistics()) ? 131071 : 524287); if (isSetStatistics()) hashCode = hashCode * 8191 + statistics.hashCode(); return hashCode; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, DataPageHeaderV2 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.num_nulls); oprot.writeI32(struct.num_rows); oprot.writeI32(struct.encoding.getValue()); oprot.writeI32(struct.definition_levels_byte_length); oprot.writeI32(struct.repetition_levels_byte_length); java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIs_compressed()) { optionals.set(0); } if (struct.isSetStatistics()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetIs_compressed()) { oprot.writeBool(struct.is_compressed); } if (struct.isSetStatistics()) { struct.statistics.write(oprot); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, DataPageHeaderV2 struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.num_values); oprot.writeI32(struct.num_nulls); oprot.writeI32(struct.num_rows); oprot.writeI32(struct.encoding.getValue()); oprot.writeI32(struct.definition_levels_byte_length); oprot.writeI32(struct.repetition_levels_byte_length); BitSet optionals = new BitSet(); if (struct.isSetIs_compressed()) { optionals.set(0); } if (struct.isSetStatistics()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetIs_compressed()) { oprot.writeBool(struct.is_compressed); } if (struct.isSetStatistics()) { struct.statistics.write(oprot); } }
/** 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 NUM_NULLS: return isSetNum_nulls(); case NUM_ROWS: return isSetNum_rows(); case ENCODING: return isSetEncoding(); case DEFINITION_LEVELS_BYTE_LENGTH: return isSetDefinition_levels_byte_length(); case REPETITION_LEVELS_BYTE_LENGTH: return isSetRepetition_levels_byte_length(); case IS_COMPRESSED: return isSetIs_compressed(); case STATISTICS: return isSetStatistics(); } 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 NUM_NULLS: return isSetNum_nulls(); case NUM_ROWS: return isSetNum_rows(); case ENCODING: return isSetEncoding(); case DEFINITION_LEVELS_BYTE_LENGTH: return isSetDefinition_levels_byte_length(); case REPETITION_LEVELS_BYTE_LENGTH: return isSetRepetition_levels_byte_length(); case IS_COMPRESSED: return isSetIs_compressed(); case STATISTICS: return isSetStatistics(); } throw new java.lang.IllegalStateException(); }
boolean this_present_statistics = true && this.isSetStatistics(); boolean that_present_statistics = true && that.isSetStatistics(); if (this_present_statistics || that_present_statistics) { if (!(this_present_statistics && that_present_statistics))
lastComparison = Boolean.valueOf(isSetStatistics()).compareTo(other.isSetStatistics()); if (lastComparison != 0) { return lastComparison; if (isSetStatistics()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statistics, other.statistics); if (lastComparison != 0) {
lastComparison = java.lang.Boolean.valueOf(isSetStatistics()).compareTo(other.isSetStatistics()); if (lastComparison != 0) { return lastComparison; if (isSetStatistics()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statistics, other.statistics); if (lastComparison != 0) {
boolean this_present_statistics = true && this.isSetStatistics(); boolean that_present_statistics = true && that.isSetStatistics(); if (this_present_statistics || that_present_statistics) { if (!(this_present_statistics && that_present_statistics))
if (struct.isSetStatistics()) { oprot.writeFieldBegin(STATISTICS_FIELD_DESC); struct.statistics.write(oprot);
if (struct.isSetStatistics()) { oprot.writeFieldBegin(STATISTICS_FIELD_DESC); struct.statistics.write(oprot);