sb.append(this.repetition_levels_byte_length); first = false; if (isSetIs_compressed()) { if (!first) sb.append(", "); sb.append("is_compressed:");
sb.append(this.repetition_levels_byte_length); first = false; if (isSetIs_compressed()) { if (!first) sb.append(", "); sb.append("is_compressed:");
list.add(repetition_levels_byte_length); boolean present_is_compressed = true && (isSetIs_compressed()); list.add(present_is_compressed); if (present_is_compressed)
@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 { 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); } }
@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); } }
/** 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(); }
boolean this_present_is_compressed = true && this.isSetIs_compressed(); boolean that_present_is_compressed = true && that.isSetIs_compressed(); if (this_present_is_compressed || that_present_is_compressed) { if (!(this_present_is_compressed && that_present_is_compressed))
/** 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(); }
lastComparison = Boolean.valueOf(isSetIs_compressed()).compareTo(other.isSetIs_compressed()); if (lastComparison != 0) { return lastComparison; if (isSetIs_compressed()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.is_compressed, other.is_compressed); if (lastComparison != 0) {
lastComparison = java.lang.Boolean.valueOf(isSetIs_compressed()).compareTo(other.isSetIs_compressed()); if (lastComparison != 0) { return lastComparison; if (isSetIs_compressed()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.is_compressed, other.is_compressed); if (lastComparison != 0) {
boolean this_present_is_compressed = true && this.isSetIs_compressed(); boolean that_present_is_compressed = true && that.isSetIs_compressed(); if (this_present_is_compressed || that_present_is_compressed) { if (!(this_present_is_compressed && that_present_is_compressed))
oprot.writeI32(struct.repetition_levels_byte_length); oprot.writeFieldEnd(); if (struct.isSetIs_compressed()) { oprot.writeFieldBegin(IS_COMPRESSED_FIELD_DESC); oprot.writeBool(struct.is_compressed);
oprot.writeI32(struct.repetition_levels_byte_length); oprot.writeFieldEnd(); if (struct.isSetIs_compressed()) { oprot.writeFieldBegin(IS_COMPRESSED_FIELD_DESC); oprot.writeBool(struct.is_compressed);