Package org.apache.parquet.format
Class Statistics
java.lang.Object
org.apache.parquet.format.Statistics
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Statistics>,org.apache.thrift.TBase<Statistics,,Statistics._Fields> org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.23.0)",
date="2026-08-06")
public class Statistics
extends Object
implements org.apache.thrift.TBase<Statistics,Statistics._Fields>, Serializable, Cloneable, Comparable<Statistics>
Statistics per row group and per page
All fields are optional.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
FieldsModifier and TypeFieldDescriptionlongcount of distinct values occurringbooleanIf true, max_value is the actual maximum value for a columnbooleanIf true, min_value is the actual minimum value for a columnDEPRECATED: min and max value of the column.Lower and upper bound values for the column, determined by its ColumnOrder.static final Map<Statistics._Fields,org.apache.thrift.meta_data.FieldMetaData> longCount of NaN values in the column; only present if physical type is FLOAT or DOUBLE, or logical type is FLOAT16.longCount of null values in the column. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()intcompareTo(Statistics other) deepCopy()booleanbooleanequals(Statistics that) fieldForId(int fieldId) longcount of distinct values occurringgetFieldValue(Statistics._Fields field) byte[]getMax()DEPRECATED: min and max value of the column.byte[]Lower and upper bound values for the column, determined by its ColumnOrder.byte[]getMin()byte[]longCount of NaN values in the column; only present if physical type is FLOAT or DOUBLE, or logical type is FLOAT16.longCount of null values in the column.inthashCode()booleanIf true, max_value is the actual maximum value for a columnbooleanIf true, min_value is the actual minimum value for a columnbooleanisSet(Statistics._Fields field) Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanReturns true if field distinct_count is set (has been assigned a value) and false otherwisebooleanReturns true if field is_max_value_exact is set (has been assigned a value) and false otherwisebooleanReturns true if field is_min_value_exact is set (has been assigned a value) and false otherwisebooleanisSetMax()Returns true if field max is set (has been assigned a value) and false otherwisebooleanReturns true if field max_value is set (has been assigned a value) and false otherwisebooleanisSetMin()Returns true if field min is set (has been assigned a value) and false otherwisebooleanReturns true if field min_value is set (has been assigned a value) and false otherwisebooleanReturns true if field nan_count is set (has been assigned a value) and false otherwisebooleanReturns true if field null_count is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot) setDistinct_count(long distinct_count) count of distinct values occurringvoidsetDistinct_countIsSet(boolean value) voidsetFieldValue(Statistics._Fields field, Object value) setIs_max_value_exact(boolean is_max_value_exact) If true, max_value is the actual maximum value for a columnvoidsetIs_max_value_exactIsSet(boolean value) setIs_min_value_exact(boolean is_min_value_exact) If true, min_value is the actual minimum value for a columnvoidsetIs_min_value_exactIsSet(boolean value) setMax(byte[] max) DEPRECATED: min and max value of the column.setMax(ByteBuffer max) setMax_value(byte[] max_value) Lower and upper bound values for the column, determined by its ColumnOrder.setMax_value(ByteBuffer max_value) voidsetMax_valueIsSet(boolean value) voidsetMaxIsSet(boolean value) setMin(byte[] min) setMin(ByteBuffer min) setMin_value(byte[] min_value) setMin_value(ByteBuffer min_value) voidsetMin_valueIsSet(boolean value) voidsetMinIsSet(boolean value) setNan_count(long nan_count) Count of NaN values in the column; only present if physical type is FLOAT or DOUBLE, or logical type is FLOAT16.voidsetNan_countIsSet(boolean value) setNull_count(long null_count) Count of null values in the column.voidsetNull_countIsSet(boolean value) toString()voidvoidvoidvoidunsetMax()voidvoidunsetMin()voidvoidvoidvoidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
max
DEPRECATED: min and max value of the column. Use min_value and max_value. Values are encoded using PLAIN encoding, except that variable-length byte arrays do not include a length prefix. These fields encode min and max values determined by signed comparison only. New files should use the correct order for a column's logical type and store the values in the min_value and max_value fields. To support older readers, these may be set when the column order is signed. -
min
-
null_count
public long null_countCount of null values in the column. Writers SHOULD always write this field even if it is zero (i.e. no null value) or the column is not nullable. Readers MUST distinguish between null_count not being present and null_count == 0. If null_count is not present, readers MUST NOT assume null_count == 0. -
distinct_count
public long distinct_countcount of distinct values occurring -
max_value
Lower and upper bound values for the column, determined by its ColumnOrder. These may be the actual minimum and maximum values found on a page or column chunk, but can also be (more compact) values that do not exist on a page or column chunk. For example, instead of storing "Blart Versenwald III", a writer may set min_value="B", max_value="C". Such more compact values must still be valid values within the column's logical type. Values are encoded using PLAIN encoding, except that variable-length byte arrays do not include a length prefix. -
min_value
-
is_max_value_exact
public boolean is_max_value_exactIf true, max_value is the actual maximum value for a column -
is_min_value_exact
public boolean is_min_value_exactIf true, min_value is the actual minimum value for a column -
nan_count
public long nan_countCount of NaN values in the column; only present if physical type is FLOAT or DOUBLE, or logical type is FLOAT16. If this field is not present, readers MUST assume NaNs may be present (i.e. MUST assume nan_count > 0 and MAY NOT assume nan_count == 0). -
metaDataMap
-
-
Constructor Details
-
Statistics
public Statistics() -
Statistics
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<Statistics,Statistics._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<Statistics,Statistics._Fields>
-
getMax
public byte[] getMax()DEPRECATED: min and max value of the column. Use min_value and max_value. Values are encoded using PLAIN encoding, except that variable-length byte arrays do not include a length prefix. These fields encode min and max values determined by signed comparison only. New files should use the correct order for a column's logical type and store the values in the min_value and max_value fields. To support older readers, these may be set when the column order is signed. -
bufferForMax
-
setMax
DEPRECATED: min and max value of the column. Use min_value and max_value. Values are encoded using PLAIN encoding, except that variable-length byte arrays do not include a length prefix. These fields encode min and max values determined by signed comparison only. New files should use the correct order for a column's logical type and store the values in the min_value and max_value fields. To support older readers, these may be set when the column order is signed. -
setMax
-
unsetMax
public void unsetMax() -
isSetMax
public boolean isSetMax()Returns true if field max is set (has been assigned a value) and false otherwise -
setMaxIsSet
public void setMaxIsSet(boolean value) -
getMin
public byte[] getMin() -
bufferForMin
-
setMin
-
setMin
-
unsetMin
public void unsetMin() -
isSetMin
public boolean isSetMin()Returns true if field min is set (has been assigned a value) and false otherwise -
setMinIsSet
public void setMinIsSet(boolean value) -
getNull_count
public long getNull_count()Count of null values in the column. Writers SHOULD always write this field even if it is zero (i.e. no null value) or the column is not nullable. Readers MUST distinguish between null_count not being present and null_count == 0. If null_count is not present, readers MUST NOT assume null_count == 0. -
setNull_count
Count of null values in the column. Writers SHOULD always write this field even if it is zero (i.e. no null value) or the column is not nullable. Readers MUST distinguish between null_count not being present and null_count == 0. If null_count is not present, readers MUST NOT assume null_count == 0. -
unsetNull_count
public void unsetNull_count() -
isSetNull_count
public boolean isSetNull_count()Returns true if field null_count is set (has been assigned a value) and false otherwise -
setNull_countIsSet
public void setNull_countIsSet(boolean value) -
getDistinct_count
public long getDistinct_count()count of distinct values occurring -
setDistinct_count
count of distinct values occurring -
unsetDistinct_count
public void unsetDistinct_count() -
isSetDistinct_count
public boolean isSetDistinct_count()Returns true if field distinct_count is set (has been assigned a value) and false otherwise -
setDistinct_countIsSet
public void setDistinct_countIsSet(boolean value) -
getMax_value
public byte[] getMax_value()Lower and upper bound values for the column, determined by its ColumnOrder. These may be the actual minimum and maximum values found on a page or column chunk, but can also be (more compact) values that do not exist on a page or column chunk. For example, instead of storing "Blart Versenwald III", a writer may set min_value="B", max_value="C". Such more compact values must still be valid values within the column's logical type. Values are encoded using PLAIN encoding, except that variable-length byte arrays do not include a length prefix. -
bufferForMax_value
-
setMax_value
Lower and upper bound values for the column, determined by its ColumnOrder. These may be the actual minimum and maximum values found on a page or column chunk, but can also be (more compact) values that do not exist on a page or column chunk. For example, instead of storing "Blart Versenwald III", a writer may set min_value="B", max_value="C". Such more compact values must still be valid values within the column's logical type. Values are encoded using PLAIN encoding, except that variable-length byte arrays do not include a length prefix. -
setMax_value
-
unsetMax_value
public void unsetMax_value() -
isSetMax_value
public boolean isSetMax_value()Returns true if field max_value is set (has been assigned a value) and false otherwise -
setMax_valueIsSet
public void setMax_valueIsSet(boolean value) -
getMin_value
public byte[] getMin_value() -
bufferForMin_value
-
setMin_value
-
setMin_value
-
unsetMin_value
public void unsetMin_value() -
isSetMin_value
public boolean isSetMin_value()Returns true if field min_value is set (has been assigned a value) and false otherwise -
setMin_valueIsSet
public void setMin_valueIsSet(boolean value) -
isIs_max_value_exact
public boolean isIs_max_value_exact()If true, max_value is the actual maximum value for a column -
setIs_max_value_exact
If true, max_value is the actual maximum value for a column -
unsetIs_max_value_exact
public void unsetIs_max_value_exact() -
isSetIs_max_value_exact
public boolean isSetIs_max_value_exact()Returns true if field is_max_value_exact is set (has been assigned a value) and false otherwise -
setIs_max_value_exactIsSet
public void setIs_max_value_exactIsSet(boolean value) -
isIs_min_value_exact
public boolean isIs_min_value_exact()If true, min_value is the actual minimum value for a column -
setIs_min_value_exact
If true, min_value is the actual minimum value for a column -
unsetIs_min_value_exact
public void unsetIs_min_value_exact() -
isSetIs_min_value_exact
public boolean isSetIs_min_value_exact()Returns true if field is_min_value_exact is set (has been assigned a value) and false otherwise -
setIs_min_value_exactIsSet
public void setIs_min_value_exactIsSet(boolean value) -
getNan_count
public long getNan_count()Count of NaN values in the column; only present if physical type is FLOAT or DOUBLE, or logical type is FLOAT16. If this field is not present, readers MUST assume NaNs may be present (i.e. MUST assume nan_count > 0 and MAY NOT assume nan_count == 0). -
setNan_count
Count of NaN values in the column; only present if physical type is FLOAT or DOUBLE, or logical type is FLOAT16. If this field is not present, readers MUST assume NaNs may be present (i.e. MUST assume nan_count > 0 and MAY NOT assume nan_count == 0). -
unsetNan_count
public void unsetNan_count() -
isSetNan_count
public boolean isSetNan_count()Returns true if field nan_count is set (has been assigned a value) and false otherwise -
setNan_countIsSet
public void setNan_countIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<Statistics,Statistics._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<Statistics,Statistics._Fields>
-
isSet
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<Statistics,Statistics._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<Statistics>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<Statistics,Statistics._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException - Specified by:
readin interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException - Specified by:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
toString
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-