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.13.0)", date="2021-04-07") public class Statistics extends Object implements org.apache.thrift.TBase<Statistics,Statistics._Fields>, Serializable, Cloneable, Comparable<Statistics>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Statistics._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description long
distinct_count
count of distinct values occurringByteBuffer
max
DEPRECATED: min and max value of the column.ByteBuffer
max_value
Min and max values for the column, determined by its ColumnOrder.static Map<Statistics._Fields,org.apache.thrift.meta_data.FieldMetaData>
metaDataMap
ByteBuffer
min
ByteBuffer
min_value
long
null_count
count of null value in the column
-
Constructor Summary
Constructors Constructor Description Statistics()
Statistics(Statistics other)
Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBuffer
bufferForMax()
ByteBuffer
bufferForMax_value()
ByteBuffer
bufferForMin()
ByteBuffer
bufferForMin_value()
void
clear()
int
compareTo(Statistics other)
Statistics
deepCopy()
boolean
equals(Object that)
boolean
equals(Statistics that)
Statistics._Fields
fieldForId(int fieldId)
long
getDistinct_count()
count of distinct values occurringObject
getFieldValue(Statistics._Fields field)
byte[]
getMax()
DEPRECATED: min and max value of the column.byte[]
getMax_value()
Min and max values for the column, determined by its ColumnOrder.byte[]
getMin()
byte[]
getMin_value()
long
getNull_count()
count of null value in the columnint
hashCode()
boolean
isSet(Statistics._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwiseboolean
isSetDistinct_count()
Returns true if field distinct_count is set (has been assigned a value) and false otherwiseboolean
isSetMax()
Returns true if field max is set (has been assigned a value) and false otherwiseboolean
isSetMax_value()
Returns true if field max_value is set (has been assigned a value) and false otherwiseboolean
isSetMin()
Returns true if field min is set (has been assigned a value) and false otherwiseboolean
isSetMin_value()
Returns true if field min_value is set (has been assigned a value) and false otherwiseboolean
isSetNull_count()
Returns true if field null_count is set (has been assigned a value) and false otherwisevoid
read(org.apache.thrift.protocol.TProtocol iprot)
Statistics
setDistinct_count(long distinct_count)
count of distinct values occurringvoid
setDistinct_countIsSet(boolean value)
void
setFieldValue(Statistics._Fields field, Object value)
Statistics
setMax(byte[] max)
DEPRECATED: min and max value of the column.Statistics
setMax(ByteBuffer max)
Statistics
setMax_value(byte[] max_value)
Min and max values for the column, determined by its ColumnOrder.Statistics
setMax_value(ByteBuffer max_value)
void
setMax_valueIsSet(boolean value)
void
setMaxIsSet(boolean value)
Statistics
setMin(byte[] min)
Statistics
setMin(ByteBuffer min)
Statistics
setMin_value(byte[] min_value)
Statistics
setMin_value(ByteBuffer min_value)
void
setMin_valueIsSet(boolean value)
void
setMinIsSet(boolean value)
Statistics
setNull_count(long null_count)
count of null value in the columnvoid
setNull_countIsSet(boolean value)
String
toString()
void
unsetDistinct_count()
void
unsetMax()
void
unsetMax_value()
void
unsetMin()
void
unsetMin_value()
void
unsetNull_count()
void
validate()
void
write(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
max
public ByteBuffer 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
public ByteBuffer min
-
null_count
public long null_count
count of null value in the column
-
distinct_count
public long distinct_count
count of distinct values occurring
-
max_value
public ByteBuffer max_value
Min and max values for the column, determined by its ColumnOrder. Values are encoded using PLAIN encoding, except that variable-length byte arrays do not include a length prefix.
-
min_value
public ByteBuffer min_value
-
metaDataMap
public static final Map<Statistics._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
Statistics
public Statistics()
-
Statistics
public Statistics(Statistics other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public Statistics deepCopy()
- Specified by:
deepCopy
in interfaceorg.apache.thrift.TBase<Statistics,Statistics._Fields>
-
clear
public void clear()
- Specified by:
clear
in 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
public ByteBuffer bufferForMax()
-
setMax
public Statistics setMax(byte[] 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.
-
setMax
public Statistics setMax(ByteBuffer max)
-
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
public ByteBuffer bufferForMin()
-
setMin
public Statistics setMin(byte[] min)
-
setMin
public Statistics setMin(ByteBuffer min)
-
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 value in the column
-
setNull_count
public Statistics setNull_count(long null_count)
count of null value in the column
-
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
public Statistics setDistinct_count(long distinct_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()
Min and max values for the column, determined by its ColumnOrder. Values are encoded using PLAIN encoding, except that variable-length byte arrays do not include a length prefix.
-
bufferForMax_value
public ByteBuffer bufferForMax_value()
-
setMax_value
public Statistics setMax_value(byte[] max_value)
Min and max values for the column, determined by its ColumnOrder. Values are encoded using PLAIN encoding, except that variable-length byte arrays do not include a length prefix.
-
setMax_value
public Statistics setMax_value(ByteBuffer max_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
public ByteBuffer bufferForMin_value()
-
setMin_value
public Statistics setMin_value(byte[] min_value)
-
setMin_value
public Statistics setMin_value(ByteBuffer min_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)
-
setFieldValue
public void setFieldValue(Statistics._Fields field, Object value)
- Specified by:
setFieldValue
in interfaceorg.apache.thrift.TBase<Statistics,Statistics._Fields>
-
getFieldValue
public Object getFieldValue(Statistics._Fields field)
- Specified by:
getFieldValue
in interfaceorg.apache.thrift.TBase<Statistics,Statistics._Fields>
-
isSet
public boolean isSet(Statistics._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSet
in interfaceorg.apache.thrift.TBase<Statistics,Statistics._Fields>
-
equals
public boolean equals(Statistics that)
-
compareTo
public int compareTo(Statistics other)
- Specified by:
compareTo
in interfaceComparable<Statistics>
-
fieldForId
public Statistics._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interfaceorg.apache.thrift.TBase<Statistics,Statistics._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
- Specified by:
read
in 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:
write
in interfaceorg.apache.thrift.TSerializable
- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
-