TIcebergColumnStats.java
/**
* Autogenerated by Thrift Compiler (0.16.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.doris.thrift;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)", date = "2026-05-14")
public class TIcebergColumnStats implements org.apache.thrift.TBase<TIcebergColumnStats, TIcebergColumnStats._Fields>, java.io.Serializable, Cloneable, Comparable<TIcebergColumnStats> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TIcebergColumnStats");
private static final org.apache.thrift.protocol.TField COLUMN_SIZES_FIELD_DESC = new org.apache.thrift.protocol.TField("column_sizes", org.apache.thrift.protocol.TType.MAP, (short)1);
private static final org.apache.thrift.protocol.TField VALUE_COUNTS_FIELD_DESC = new org.apache.thrift.protocol.TField("value_counts", org.apache.thrift.protocol.TType.MAP, (short)2);
private static final org.apache.thrift.protocol.TField NULL_VALUE_COUNTS_FIELD_DESC = new org.apache.thrift.protocol.TField("null_value_counts", org.apache.thrift.protocol.TType.MAP, (short)3);
private static final org.apache.thrift.protocol.TField NAN_VALUE_COUNTS_FIELD_DESC = new org.apache.thrift.protocol.TField("nan_value_counts", org.apache.thrift.protocol.TType.MAP, (short)4);
private static final org.apache.thrift.protocol.TField LOWER_BOUNDS_FIELD_DESC = new org.apache.thrift.protocol.TField("lower_bounds", org.apache.thrift.protocol.TType.MAP, (short)5);
private static final org.apache.thrift.protocol.TField UPPER_BOUNDS_FIELD_DESC = new org.apache.thrift.protocol.TField("upper_bounds", org.apache.thrift.protocol.TType.MAP, (short)6);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TIcebergColumnStatsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TIcebergColumnStatsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable java.util.Map<java.lang.Integer,java.lang.Long> column_sizes; // optional
public @org.apache.thrift.annotation.Nullable java.util.Map<java.lang.Integer,java.lang.Long> value_counts; // optional
public @org.apache.thrift.annotation.Nullable java.util.Map<java.lang.Integer,java.lang.Long> null_value_counts; // optional
public @org.apache.thrift.annotation.Nullable java.util.Map<java.lang.Integer,java.lang.Long> nan_value_counts; // optional
public @org.apache.thrift.annotation.Nullable java.util.Map<java.lang.Integer,java.nio.ByteBuffer> lower_bounds; // optional
public @org.apache.thrift.annotation.Nullable java.util.Map<java.lang.Integer,java.nio.ByteBuffer> upper_bounds; // optional
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
COLUMN_SIZES((short)1, "column_sizes"),
VALUE_COUNTS((short)2, "value_counts"),
NULL_VALUE_COUNTS((short)3, "null_value_counts"),
NAN_VALUE_COUNTS((short)4, "nan_value_counts"),
LOWER_BOUNDS((short)5, "lower_bounds"),
UPPER_BOUNDS((short)6, "upper_bounds");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // COLUMN_SIZES
return COLUMN_SIZES;
case 2: // VALUE_COUNTS
return VALUE_COUNTS;
case 3: // NULL_VALUE_COUNTS
return NULL_VALUE_COUNTS;
case 4: // NAN_VALUE_COUNTS
return NAN_VALUE_COUNTS;
case 5: // LOWER_BOUNDS
return LOWER_BOUNDS;
case 6: // UPPER_BOUNDS
return UPPER_BOUNDS;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final _Fields optionals[] = {_Fields.COLUMN_SIZES,_Fields.VALUE_COUNTS,_Fields.NULL_VALUE_COUNTS,_Fields.NAN_VALUE_COUNTS,_Fields.LOWER_BOUNDS,_Fields.UPPER_BOUNDS};
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.COLUMN_SIZES, new org.apache.thrift.meta_data.FieldMetaData("column_sizes", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32),
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
tmpMap.put(_Fields.VALUE_COUNTS, new org.apache.thrift.meta_data.FieldMetaData("value_counts", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32),
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
tmpMap.put(_Fields.NULL_VALUE_COUNTS, new org.apache.thrift.meta_data.FieldMetaData("null_value_counts", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32),
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
tmpMap.put(_Fields.NAN_VALUE_COUNTS, new org.apache.thrift.meta_data.FieldMetaData("nan_value_counts", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32),
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
tmpMap.put(_Fields.LOWER_BOUNDS, new org.apache.thrift.meta_data.FieldMetaData("lower_bounds", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32),
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))));
tmpMap.put(_Fields.UPPER_BOUNDS, new org.apache.thrift.meta_data.FieldMetaData("upper_bounds", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32),
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TIcebergColumnStats.class, metaDataMap);
}
public TIcebergColumnStats() {
}
/**
* Performs a deep copy on <i>other</i>.
*/
public TIcebergColumnStats(TIcebergColumnStats other) {
if (other.isSetColumnSizes()) {
java.util.Map<java.lang.Integer,java.lang.Long> __this__column_sizes = new java.util.HashMap<java.lang.Integer,java.lang.Long>(other.column_sizes);
this.column_sizes = __this__column_sizes;
}
if (other.isSetValueCounts()) {
java.util.Map<java.lang.Integer,java.lang.Long> __this__value_counts = new java.util.HashMap<java.lang.Integer,java.lang.Long>(other.value_counts);
this.value_counts = __this__value_counts;
}
if (other.isSetNullValueCounts()) {
java.util.Map<java.lang.Integer,java.lang.Long> __this__null_value_counts = new java.util.HashMap<java.lang.Integer,java.lang.Long>(other.null_value_counts);
this.null_value_counts = __this__null_value_counts;
}
if (other.isSetNanValueCounts()) {
java.util.Map<java.lang.Integer,java.lang.Long> __this__nan_value_counts = new java.util.HashMap<java.lang.Integer,java.lang.Long>(other.nan_value_counts);
this.nan_value_counts = __this__nan_value_counts;
}
if (other.isSetLowerBounds()) {
java.util.Map<java.lang.Integer,java.nio.ByteBuffer> __this__lower_bounds = new java.util.HashMap<java.lang.Integer,java.nio.ByteBuffer>(other.lower_bounds);
this.lower_bounds = __this__lower_bounds;
}
if (other.isSetUpperBounds()) {
java.util.Map<java.lang.Integer,java.nio.ByteBuffer> __this__upper_bounds = new java.util.HashMap<java.lang.Integer,java.nio.ByteBuffer>(other.upper_bounds);
this.upper_bounds = __this__upper_bounds;
}
}
public TIcebergColumnStats deepCopy() {
return new TIcebergColumnStats(this);
}
@Override
public void clear() {
this.column_sizes = null;
this.value_counts = null;
this.null_value_counts = null;
this.nan_value_counts = null;
this.lower_bounds = null;
this.upper_bounds = null;
}
public int getColumnSizesSize() {
return (this.column_sizes == null) ? 0 : this.column_sizes.size();
}
public void putToColumnSizes(int key, long val) {
if (this.column_sizes == null) {
this.column_sizes = new java.util.HashMap<java.lang.Integer,java.lang.Long>();
}
this.column_sizes.put(key, val);
}
@org.apache.thrift.annotation.Nullable
public java.util.Map<java.lang.Integer,java.lang.Long> getColumnSizes() {
return this.column_sizes;
}
public TIcebergColumnStats setColumnSizes(@org.apache.thrift.annotation.Nullable java.util.Map<java.lang.Integer,java.lang.Long> column_sizes) {
this.column_sizes = column_sizes;
return this;
}
public void unsetColumnSizes() {
this.column_sizes = null;
}
/** Returns true if field column_sizes is set (has been assigned a value) and false otherwise */
public boolean isSetColumnSizes() {
return this.column_sizes != null;
}
public void setColumnSizesIsSet(boolean value) {
if (!value) {
this.column_sizes = null;
}
}
public int getValueCountsSize() {
return (this.value_counts == null) ? 0 : this.value_counts.size();
}
public void putToValueCounts(int key, long val) {
if (this.value_counts == null) {
this.value_counts = new java.util.HashMap<java.lang.Integer,java.lang.Long>();
}
this.value_counts.put(key, val);
}
@org.apache.thrift.annotation.Nullable
public java.util.Map<java.lang.Integer,java.lang.Long> getValueCounts() {
return this.value_counts;
}
public TIcebergColumnStats setValueCounts(@org.apache.thrift.annotation.Nullable java.util.Map<java.lang.Integer,java.lang.Long> value_counts) {
this.value_counts = value_counts;
return this;
}
public void unsetValueCounts() {
this.value_counts = null;
}
/** Returns true if field value_counts is set (has been assigned a value) and false otherwise */
public boolean isSetValueCounts() {
return this.value_counts != null;
}
public void setValueCountsIsSet(boolean value) {
if (!value) {
this.value_counts = null;
}
}
public int getNullValueCountsSize() {
return (this.null_value_counts == null) ? 0 : this.null_value_counts.size();
}
public void putToNullValueCounts(int key, long val) {
if (this.null_value_counts == null) {
this.null_value_counts = new java.util.HashMap<java.lang.Integer,java.lang.Long>();
}
this.null_value_counts.put(key, val);
}
@org.apache.thrift.annotation.Nullable
public java.util.Map<java.lang.Integer,java.lang.Long> getNullValueCounts() {
return this.null_value_counts;
}
public TIcebergColumnStats setNullValueCounts(@org.apache.thrift.annotation.Nullable java.util.Map<java.lang.Integer,java.lang.Long> null_value_counts) {
this.null_value_counts = null_value_counts;
return this;
}
public void unsetNullValueCounts() {
this.null_value_counts = null;
}
/** Returns true if field null_value_counts is set (has been assigned a value) and false otherwise */
public boolean isSetNullValueCounts() {
return this.null_value_counts != null;
}
public void setNullValueCountsIsSet(boolean value) {
if (!value) {
this.null_value_counts = null;
}
}
public int getNanValueCountsSize() {
return (this.nan_value_counts == null) ? 0 : this.nan_value_counts.size();
}
public void putToNanValueCounts(int key, long val) {
if (this.nan_value_counts == null) {
this.nan_value_counts = new java.util.HashMap<java.lang.Integer,java.lang.Long>();
}
this.nan_value_counts.put(key, val);
}
@org.apache.thrift.annotation.Nullable
public java.util.Map<java.lang.Integer,java.lang.Long> getNanValueCounts() {
return this.nan_value_counts;
}
public TIcebergColumnStats setNanValueCounts(@org.apache.thrift.annotation.Nullable java.util.Map<java.lang.Integer,java.lang.Long> nan_value_counts) {
this.nan_value_counts = nan_value_counts;
return this;
}
public void unsetNanValueCounts() {
this.nan_value_counts = null;
}
/** Returns true if field nan_value_counts is set (has been assigned a value) and false otherwise */
public boolean isSetNanValueCounts() {
return this.nan_value_counts != null;
}
public void setNanValueCountsIsSet(boolean value) {
if (!value) {
this.nan_value_counts = null;
}
}
public int getLowerBoundsSize() {
return (this.lower_bounds == null) ? 0 : this.lower_bounds.size();
}
public void putToLowerBounds(int key, java.nio.ByteBuffer val) {
if (this.lower_bounds == null) {
this.lower_bounds = new java.util.HashMap<java.lang.Integer,java.nio.ByteBuffer>();
}
this.lower_bounds.put(key, val);
}
@org.apache.thrift.annotation.Nullable
public java.util.Map<java.lang.Integer,java.nio.ByteBuffer> getLowerBounds() {
return this.lower_bounds;
}
public TIcebergColumnStats setLowerBounds(@org.apache.thrift.annotation.Nullable java.util.Map<java.lang.Integer,java.nio.ByteBuffer> lower_bounds) {
this.lower_bounds = lower_bounds;
return this;
}
public void unsetLowerBounds() {
this.lower_bounds = null;
}
/** Returns true if field lower_bounds is set (has been assigned a value) and false otherwise */
public boolean isSetLowerBounds() {
return this.lower_bounds != null;
}
public void setLowerBoundsIsSet(boolean value) {
if (!value) {
this.lower_bounds = null;
}
}
public int getUpperBoundsSize() {
return (this.upper_bounds == null) ? 0 : this.upper_bounds.size();
}
public void putToUpperBounds(int key, java.nio.ByteBuffer val) {
if (this.upper_bounds == null) {
this.upper_bounds = new java.util.HashMap<java.lang.Integer,java.nio.ByteBuffer>();
}
this.upper_bounds.put(key, val);
}
@org.apache.thrift.annotation.Nullable
public java.util.Map<java.lang.Integer,java.nio.ByteBuffer> getUpperBounds() {
return this.upper_bounds;
}
public TIcebergColumnStats setUpperBounds(@org.apache.thrift.annotation.Nullable java.util.Map<java.lang.Integer,java.nio.ByteBuffer> upper_bounds) {
this.upper_bounds = upper_bounds;
return this;
}
public void unsetUpperBounds() {
this.upper_bounds = null;
}
/** Returns true if field upper_bounds is set (has been assigned a value) and false otherwise */
public boolean isSetUpperBounds() {
return this.upper_bounds != null;
}
public void setUpperBoundsIsSet(boolean value) {
if (!value) {
this.upper_bounds = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case COLUMN_SIZES:
if (value == null) {
unsetColumnSizes();
} else {
setColumnSizes((java.util.Map<java.lang.Integer,java.lang.Long>)value);
}
break;
case VALUE_COUNTS:
if (value == null) {
unsetValueCounts();
} else {
setValueCounts((java.util.Map<java.lang.Integer,java.lang.Long>)value);
}
break;
case NULL_VALUE_COUNTS:
if (value == null) {
unsetNullValueCounts();
} else {
setNullValueCounts((java.util.Map<java.lang.Integer,java.lang.Long>)value);
}
break;
case NAN_VALUE_COUNTS:
if (value == null) {
unsetNanValueCounts();
} else {
setNanValueCounts((java.util.Map<java.lang.Integer,java.lang.Long>)value);
}
break;
case LOWER_BOUNDS:
if (value == null) {
unsetLowerBounds();
} else {
setLowerBounds((java.util.Map<java.lang.Integer,java.nio.ByteBuffer>)value);
}
break;
case UPPER_BOUNDS:
if (value == null) {
unsetUpperBounds();
} else {
setUpperBounds((java.util.Map<java.lang.Integer,java.nio.ByteBuffer>)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case COLUMN_SIZES:
return getColumnSizes();
case VALUE_COUNTS:
return getValueCounts();
case NULL_VALUE_COUNTS:
return getNullValueCounts();
case NAN_VALUE_COUNTS:
return getNanValueCounts();
case LOWER_BOUNDS:
return getLowerBounds();
case UPPER_BOUNDS:
return getUpperBounds();
}
throw new java.lang.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 COLUMN_SIZES:
return isSetColumnSizes();
case VALUE_COUNTS:
return isSetValueCounts();
case NULL_VALUE_COUNTS:
return isSetNullValueCounts();
case NAN_VALUE_COUNTS:
return isSetNanValueCounts();
case LOWER_BOUNDS:
return isSetLowerBounds();
case UPPER_BOUNDS:
return isSetUpperBounds();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof TIcebergColumnStats)
return this.equals((TIcebergColumnStats)that);
return false;
}
public boolean equals(TIcebergColumnStats that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_column_sizes = true && this.isSetColumnSizes();
boolean that_present_column_sizes = true && that.isSetColumnSizes();
if (this_present_column_sizes || that_present_column_sizes) {
if (!(this_present_column_sizes && that_present_column_sizes))
return false;
if (!this.column_sizes.equals(that.column_sizes))
return false;
}
boolean this_present_value_counts = true && this.isSetValueCounts();
boolean that_present_value_counts = true && that.isSetValueCounts();
if (this_present_value_counts || that_present_value_counts) {
if (!(this_present_value_counts && that_present_value_counts))
return false;
if (!this.value_counts.equals(that.value_counts))
return false;
}
boolean this_present_null_value_counts = true && this.isSetNullValueCounts();
boolean that_present_null_value_counts = true && that.isSetNullValueCounts();
if (this_present_null_value_counts || that_present_null_value_counts) {
if (!(this_present_null_value_counts && that_present_null_value_counts))
return false;
if (!this.null_value_counts.equals(that.null_value_counts))
return false;
}
boolean this_present_nan_value_counts = true && this.isSetNanValueCounts();
boolean that_present_nan_value_counts = true && that.isSetNanValueCounts();
if (this_present_nan_value_counts || that_present_nan_value_counts) {
if (!(this_present_nan_value_counts && that_present_nan_value_counts))
return false;
if (!this.nan_value_counts.equals(that.nan_value_counts))
return false;
}
boolean this_present_lower_bounds = true && this.isSetLowerBounds();
boolean that_present_lower_bounds = true && that.isSetLowerBounds();
if (this_present_lower_bounds || that_present_lower_bounds) {
if (!(this_present_lower_bounds && that_present_lower_bounds))
return false;
if (!this.lower_bounds.equals(that.lower_bounds))
return false;
}
boolean this_present_upper_bounds = true && this.isSetUpperBounds();
boolean that_present_upper_bounds = true && that.isSetUpperBounds();
if (this_present_upper_bounds || that_present_upper_bounds) {
if (!(this_present_upper_bounds && that_present_upper_bounds))
return false;
if (!this.upper_bounds.equals(that.upper_bounds))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetColumnSizes()) ? 131071 : 524287);
if (isSetColumnSizes())
hashCode = hashCode * 8191 + column_sizes.hashCode();
hashCode = hashCode * 8191 + ((isSetValueCounts()) ? 131071 : 524287);
if (isSetValueCounts())
hashCode = hashCode * 8191 + value_counts.hashCode();
hashCode = hashCode * 8191 + ((isSetNullValueCounts()) ? 131071 : 524287);
if (isSetNullValueCounts())
hashCode = hashCode * 8191 + null_value_counts.hashCode();
hashCode = hashCode * 8191 + ((isSetNanValueCounts()) ? 131071 : 524287);
if (isSetNanValueCounts())
hashCode = hashCode * 8191 + nan_value_counts.hashCode();
hashCode = hashCode * 8191 + ((isSetLowerBounds()) ? 131071 : 524287);
if (isSetLowerBounds())
hashCode = hashCode * 8191 + lower_bounds.hashCode();
hashCode = hashCode * 8191 + ((isSetUpperBounds()) ? 131071 : 524287);
if (isSetUpperBounds())
hashCode = hashCode * 8191 + upper_bounds.hashCode();
return hashCode;
}
@Override
public int compareTo(TIcebergColumnStats other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetColumnSizes(), other.isSetColumnSizes());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetColumnSizes()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_sizes, other.column_sizes);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetValueCounts(), other.isSetValueCounts());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetValueCounts()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value_counts, other.value_counts);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetNullValueCounts(), other.isSetNullValueCounts());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetNullValueCounts()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.null_value_counts, other.null_value_counts);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetNanValueCounts(), other.isSetNanValueCounts());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetNanValueCounts()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nan_value_counts, other.nan_value_counts);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetLowerBounds(), other.isSetLowerBounds());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetLowerBounds()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lower_bounds, other.lower_bounds);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetUpperBounds(), other.isSetUpperBounds());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetUpperBounds()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.upper_bounds, other.upper_bounds);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("TIcebergColumnStats(");
boolean first = true;
if (isSetColumnSizes()) {
sb.append("column_sizes:");
if (this.column_sizes == null) {
sb.append("null");
} else {
sb.append(this.column_sizes);
}
first = false;
}
if (isSetValueCounts()) {
if (!first) sb.append(", ");
sb.append("value_counts:");
if (this.value_counts == null) {
sb.append("null");
} else {
sb.append(this.value_counts);
}
first = false;
}
if (isSetNullValueCounts()) {
if (!first) sb.append(", ");
sb.append("null_value_counts:");
if (this.null_value_counts == null) {
sb.append("null");
} else {
sb.append(this.null_value_counts);
}
first = false;
}
if (isSetNanValueCounts()) {
if (!first) sb.append(", ");
sb.append("nan_value_counts:");
if (this.nan_value_counts == null) {
sb.append("null");
} else {
sb.append(this.nan_value_counts);
}
first = false;
}
if (isSetLowerBounds()) {
if (!first) sb.append(", ");
sb.append("lower_bounds:");
if (this.lower_bounds == null) {
sb.append("null");
} else {
sb.append(this.lower_bounds);
}
first = false;
}
if (isSetUpperBounds()) {
if (!first) sb.append(", ");
sb.append("upper_bounds:");
if (this.upper_bounds == null) {
sb.append("null");
} else {
sb.append(this.upper_bounds);
}
first = false;
}
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class TIcebergColumnStatsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TIcebergColumnStatsStandardScheme getScheme() {
return new TIcebergColumnStatsStandardScheme();
}
}
private static class TIcebergColumnStatsStandardScheme extends org.apache.thrift.scheme.StandardScheme<TIcebergColumnStats> {
public void read(org.apache.thrift.protocol.TProtocol iprot, TIcebergColumnStats struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // COLUMN_SIZES
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
org.apache.thrift.protocol.TMap _map218 = iprot.readMapBegin();
struct.column_sizes = new java.util.HashMap<java.lang.Integer,java.lang.Long>(2*_map218.size);
int _key219;
long _val220;
for (int _i221 = 0; _i221 < _map218.size; ++_i221)
{
_key219 = iprot.readI32();
_val220 = iprot.readI64();
struct.column_sizes.put(_key219, _val220);
}
iprot.readMapEnd();
}
struct.setColumnSizesIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // VALUE_COUNTS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
org.apache.thrift.protocol.TMap _map222 = iprot.readMapBegin();
struct.value_counts = new java.util.HashMap<java.lang.Integer,java.lang.Long>(2*_map222.size);
int _key223;
long _val224;
for (int _i225 = 0; _i225 < _map222.size; ++_i225)
{
_key223 = iprot.readI32();
_val224 = iprot.readI64();
struct.value_counts.put(_key223, _val224);
}
iprot.readMapEnd();
}
struct.setValueCountsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // NULL_VALUE_COUNTS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
org.apache.thrift.protocol.TMap _map226 = iprot.readMapBegin();
struct.null_value_counts = new java.util.HashMap<java.lang.Integer,java.lang.Long>(2*_map226.size);
int _key227;
long _val228;
for (int _i229 = 0; _i229 < _map226.size; ++_i229)
{
_key227 = iprot.readI32();
_val228 = iprot.readI64();
struct.null_value_counts.put(_key227, _val228);
}
iprot.readMapEnd();
}
struct.setNullValueCountsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // NAN_VALUE_COUNTS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
org.apache.thrift.protocol.TMap _map230 = iprot.readMapBegin();
struct.nan_value_counts = new java.util.HashMap<java.lang.Integer,java.lang.Long>(2*_map230.size);
int _key231;
long _val232;
for (int _i233 = 0; _i233 < _map230.size; ++_i233)
{
_key231 = iprot.readI32();
_val232 = iprot.readI64();
struct.nan_value_counts.put(_key231, _val232);
}
iprot.readMapEnd();
}
struct.setNanValueCountsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // LOWER_BOUNDS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
org.apache.thrift.protocol.TMap _map234 = iprot.readMapBegin();
struct.lower_bounds = new java.util.HashMap<java.lang.Integer,java.nio.ByteBuffer>(2*_map234.size);
int _key235;
@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val236;
for (int _i237 = 0; _i237 < _map234.size; ++_i237)
{
_key235 = iprot.readI32();
_val236 = iprot.readBinary();
struct.lower_bounds.put(_key235, _val236);
}
iprot.readMapEnd();
}
struct.setLowerBoundsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 6: // UPPER_BOUNDS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
org.apache.thrift.protocol.TMap _map238 = iprot.readMapBegin();
struct.upper_bounds = new java.util.HashMap<java.lang.Integer,java.nio.ByteBuffer>(2*_map238.size);
int _key239;
@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val240;
for (int _i241 = 0; _i241 < _map238.size; ++_i241)
{
_key239 = iprot.readI32();
_val240 = iprot.readBinary();
struct.upper_bounds.put(_key239, _val240);
}
iprot.readMapEnd();
}
struct.setUpperBoundsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, TIcebergColumnStats struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.column_sizes != null) {
if (struct.isSetColumnSizes()) {
oprot.writeFieldBegin(COLUMN_SIZES_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.I64, struct.column_sizes.size()));
for (java.util.Map.Entry<java.lang.Integer, java.lang.Long> _iter242 : struct.column_sizes.entrySet())
{
oprot.writeI32(_iter242.getKey());
oprot.writeI64(_iter242.getValue());
}
oprot.writeMapEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.value_counts != null) {
if (struct.isSetValueCounts()) {
oprot.writeFieldBegin(VALUE_COUNTS_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.I64, struct.value_counts.size()));
for (java.util.Map.Entry<java.lang.Integer, java.lang.Long> _iter243 : struct.value_counts.entrySet())
{
oprot.writeI32(_iter243.getKey());
oprot.writeI64(_iter243.getValue());
}
oprot.writeMapEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.null_value_counts != null) {
if (struct.isSetNullValueCounts()) {
oprot.writeFieldBegin(NULL_VALUE_COUNTS_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.I64, struct.null_value_counts.size()));
for (java.util.Map.Entry<java.lang.Integer, java.lang.Long> _iter244 : struct.null_value_counts.entrySet())
{
oprot.writeI32(_iter244.getKey());
oprot.writeI64(_iter244.getValue());
}
oprot.writeMapEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.nan_value_counts != null) {
if (struct.isSetNanValueCounts()) {
oprot.writeFieldBegin(NAN_VALUE_COUNTS_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.I64, struct.nan_value_counts.size()));
for (java.util.Map.Entry<java.lang.Integer, java.lang.Long> _iter245 : struct.nan_value_counts.entrySet())
{
oprot.writeI32(_iter245.getKey());
oprot.writeI64(_iter245.getValue());
}
oprot.writeMapEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.lower_bounds != null) {
if (struct.isSetLowerBounds()) {
oprot.writeFieldBegin(LOWER_BOUNDS_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRING, struct.lower_bounds.size()));
for (java.util.Map.Entry<java.lang.Integer, java.nio.ByteBuffer> _iter246 : struct.lower_bounds.entrySet())
{
oprot.writeI32(_iter246.getKey());
oprot.writeBinary(_iter246.getValue());
}
oprot.writeMapEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.upper_bounds != null) {
if (struct.isSetUpperBounds()) {
oprot.writeFieldBegin(UPPER_BOUNDS_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRING, struct.upper_bounds.size()));
for (java.util.Map.Entry<java.lang.Integer, java.nio.ByteBuffer> _iter247 : struct.upper_bounds.entrySet())
{
oprot.writeI32(_iter247.getKey());
oprot.writeBinary(_iter247.getValue());
}
oprot.writeMapEnd();
}
oprot.writeFieldEnd();
}
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class TIcebergColumnStatsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TIcebergColumnStatsTupleScheme getScheme() {
return new TIcebergColumnStatsTupleScheme();
}
}
private static class TIcebergColumnStatsTupleScheme extends org.apache.thrift.scheme.TupleScheme<TIcebergColumnStats> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, TIcebergColumnStats struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetColumnSizes()) {
optionals.set(0);
}
if (struct.isSetValueCounts()) {
optionals.set(1);
}
if (struct.isSetNullValueCounts()) {
optionals.set(2);
}
if (struct.isSetNanValueCounts()) {
optionals.set(3);
}
if (struct.isSetLowerBounds()) {
optionals.set(4);
}
if (struct.isSetUpperBounds()) {
optionals.set(5);
}
oprot.writeBitSet(optionals, 6);
if (struct.isSetColumnSizes()) {
{
oprot.writeI32(struct.column_sizes.size());
for (java.util.Map.Entry<java.lang.Integer, java.lang.Long> _iter248 : struct.column_sizes.entrySet())
{
oprot.writeI32(_iter248.getKey());
oprot.writeI64(_iter248.getValue());
}
}
}
if (struct.isSetValueCounts()) {
{
oprot.writeI32(struct.value_counts.size());
for (java.util.Map.Entry<java.lang.Integer, java.lang.Long> _iter249 : struct.value_counts.entrySet())
{
oprot.writeI32(_iter249.getKey());
oprot.writeI64(_iter249.getValue());
}
}
}
if (struct.isSetNullValueCounts()) {
{
oprot.writeI32(struct.null_value_counts.size());
for (java.util.Map.Entry<java.lang.Integer, java.lang.Long> _iter250 : struct.null_value_counts.entrySet())
{
oprot.writeI32(_iter250.getKey());
oprot.writeI64(_iter250.getValue());
}
}
}
if (struct.isSetNanValueCounts()) {
{
oprot.writeI32(struct.nan_value_counts.size());
for (java.util.Map.Entry<java.lang.Integer, java.lang.Long> _iter251 : struct.nan_value_counts.entrySet())
{
oprot.writeI32(_iter251.getKey());
oprot.writeI64(_iter251.getValue());
}
}
}
if (struct.isSetLowerBounds()) {
{
oprot.writeI32(struct.lower_bounds.size());
for (java.util.Map.Entry<java.lang.Integer, java.nio.ByteBuffer> _iter252 : struct.lower_bounds.entrySet())
{
oprot.writeI32(_iter252.getKey());
oprot.writeBinary(_iter252.getValue());
}
}
}
if (struct.isSetUpperBounds()) {
{
oprot.writeI32(struct.upper_bounds.size());
for (java.util.Map.Entry<java.lang.Integer, java.nio.ByteBuffer> _iter253 : struct.upper_bounds.entrySet())
{
oprot.writeI32(_iter253.getKey());
oprot.writeBinary(_iter253.getValue());
}
}
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TIcebergColumnStats struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(6);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TMap _map254 = iprot.readMapBegin(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.I64);
struct.column_sizes = new java.util.HashMap<java.lang.Integer,java.lang.Long>(2*_map254.size);
int _key255;
long _val256;
for (int _i257 = 0; _i257 < _map254.size; ++_i257)
{
_key255 = iprot.readI32();
_val256 = iprot.readI64();
struct.column_sizes.put(_key255, _val256);
}
}
struct.setColumnSizesIsSet(true);
}
if (incoming.get(1)) {
{
org.apache.thrift.protocol.TMap _map258 = iprot.readMapBegin(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.I64);
struct.value_counts = new java.util.HashMap<java.lang.Integer,java.lang.Long>(2*_map258.size);
int _key259;
long _val260;
for (int _i261 = 0; _i261 < _map258.size; ++_i261)
{
_key259 = iprot.readI32();
_val260 = iprot.readI64();
struct.value_counts.put(_key259, _val260);
}
}
struct.setValueCountsIsSet(true);
}
if (incoming.get(2)) {
{
org.apache.thrift.protocol.TMap _map262 = iprot.readMapBegin(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.I64);
struct.null_value_counts = new java.util.HashMap<java.lang.Integer,java.lang.Long>(2*_map262.size);
int _key263;
long _val264;
for (int _i265 = 0; _i265 < _map262.size; ++_i265)
{
_key263 = iprot.readI32();
_val264 = iprot.readI64();
struct.null_value_counts.put(_key263, _val264);
}
}
struct.setNullValueCountsIsSet(true);
}
if (incoming.get(3)) {
{
org.apache.thrift.protocol.TMap _map266 = iprot.readMapBegin(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.I64);
struct.nan_value_counts = new java.util.HashMap<java.lang.Integer,java.lang.Long>(2*_map266.size);
int _key267;
long _val268;
for (int _i269 = 0; _i269 < _map266.size; ++_i269)
{
_key267 = iprot.readI32();
_val268 = iprot.readI64();
struct.nan_value_counts.put(_key267, _val268);
}
}
struct.setNanValueCountsIsSet(true);
}
if (incoming.get(4)) {
{
org.apache.thrift.protocol.TMap _map270 = iprot.readMapBegin(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRING);
struct.lower_bounds = new java.util.HashMap<java.lang.Integer,java.nio.ByteBuffer>(2*_map270.size);
int _key271;
@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val272;
for (int _i273 = 0; _i273 < _map270.size; ++_i273)
{
_key271 = iprot.readI32();
_val272 = iprot.readBinary();
struct.lower_bounds.put(_key271, _val272);
}
}
struct.setLowerBoundsIsSet(true);
}
if (incoming.get(5)) {
{
org.apache.thrift.protocol.TMap _map274 = iprot.readMapBegin(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRING);
struct.upper_bounds = new java.util.HashMap<java.lang.Integer,java.nio.ByteBuffer>(2*_map274.size);
int _key275;
@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _val276;
for (int _i277 = 0; _i277 < _map274.size; ++_i277)
{
_key275 = iprot.readI32();
_val276 = iprot.readBinary();
struct.upper_bounds.put(_key275, _val276);
}
}
struct.setUpperBoundsIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}