Package org.apache.parquet.format
Class DataPageHeaderV2
- java.lang.Object
-
- org.apache.parquet.format.DataPageHeaderV2
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<DataPageHeaderV2>,org.apache.thrift.TBase<DataPageHeaderV2,DataPageHeaderV2._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.16.0)", date="2023-05-12") public class DataPageHeaderV2 extends Object implements org.apache.thrift.TBase<DataPageHeaderV2,DataPageHeaderV2._Fields>, Serializable, Cloneable, Comparable<DataPageHeaderV2>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDataPageHeaderV2._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description intdefinition_levels_byte_lengthlength of the definition levelsEncodingencodingEncoding used for data in this page *booleanis_compressedwhether the values are compressed.static Map<DataPageHeaderV2._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapintnum_nullsNumber of NULL values, in this data page.intnum_rowsNumber of rows in this data page.intnum_valuesNumber of values, including NULLs, in this data page.intrepetition_levels_byte_lengthlength of the repetition levelsStatisticsstatisticsoptional statistics for the data in this page *
-
Constructor Summary
Constructors Constructor Description DataPageHeaderV2()DataPageHeaderV2(int num_values, int num_nulls, int num_rows, Encoding encoding, int definition_levels_byte_length, int repetition_levels_byte_length)DataPageHeaderV2(DataPageHeaderV2 other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()intcompareTo(DataPageHeaderV2 other)DataPageHeaderV2deepCopy()booleanequals(Object that)booleanequals(DataPageHeaderV2 that)DataPageHeaderV2._FieldsfieldForId(int fieldId)intgetDefinition_levels_byte_length()length of the definition levelsEncodinggetEncoding()Encoding used for data in this page *ObjectgetFieldValue(DataPageHeaderV2._Fields field)intgetNum_nulls()Number of NULL values, in this data page.intgetNum_rows()Number of rows in this data page.intgetNum_values()Number of values, including NULLs, in this data page.intgetRepetition_levels_byte_length()length of the repetition levelsStatisticsgetStatistics()optional statistics for the data in this page *inthashCode()booleanisIs_compressed()whether the values are compressed.booleanisSet(DataPageHeaderV2._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetDefinition_levels_byte_length()Returns true if field definition_levels_byte_length is set (has been assigned a value) and false otherwisebooleanisSetEncoding()Returns true if field encoding is set (has been assigned a value) and false otherwisebooleanisSetIs_compressed()Returns true if field is_compressed is set (has been assigned a value) and false otherwisebooleanisSetNum_nulls()Returns true if field num_nulls is set (has been assigned a value) and false otherwisebooleanisSetNum_rows()Returns true if field num_rows is set (has been assigned a value) and false otherwisebooleanisSetNum_values()Returns true if field num_values is set (has been assigned a value) and false otherwisebooleanisSetRepetition_levels_byte_length()Returns true if field repetition_levels_byte_length is set (has been assigned a value) and false otherwisebooleanisSetStatistics()Returns true if field statistics is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)DataPageHeaderV2setDefinition_levels_byte_length(int definition_levels_byte_length)length of the definition levelsvoidsetDefinition_levels_byte_lengthIsSet(boolean value)DataPageHeaderV2setEncoding(Encoding encoding)Encoding used for data in this page *voidsetEncodingIsSet(boolean value)voidsetFieldValue(DataPageHeaderV2._Fields field, Object value)DataPageHeaderV2setIs_compressed(boolean is_compressed)whether the values are compressed.voidsetIs_compressedIsSet(boolean value)DataPageHeaderV2setNum_nulls(int num_nulls)Number of NULL values, in this data page.voidsetNum_nullsIsSet(boolean value)DataPageHeaderV2setNum_rows(int num_rows)Number of rows in this data page.voidsetNum_rowsIsSet(boolean value)DataPageHeaderV2setNum_values(int num_values)Number of values, including NULLs, in this data page.voidsetNum_valuesIsSet(boolean value)DataPageHeaderV2setRepetition_levels_byte_length(int repetition_levels_byte_length)length of the repetition levelsvoidsetRepetition_levels_byte_lengthIsSet(boolean value)DataPageHeaderV2setStatistics(Statistics statistics)optional statistics for the data in this page *voidsetStatisticsIsSet(boolean value)StringtoString()voidunsetDefinition_levels_byte_length()voidunsetEncoding()voidunsetIs_compressed()voidunsetNum_nulls()voidunsetNum_rows()voidunsetNum_values()voidunsetRepetition_levels_byte_length()voidunsetStatistics()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
num_values
public int num_values
Number of values, including NULLs, in this data page. *
-
num_nulls
public int num_nulls
Number of NULL values, in this data page. Number of non-null = num_values - num_nulls which is also the number of values in the data section *
-
num_rows
public int num_rows
Number of rows in this data page. which means pages change on record boundaries (r = 0) *
-
definition_levels_byte_length
public int definition_levels_byte_length
length of the definition levels
-
repetition_levels_byte_length
public int repetition_levels_byte_length
length of the repetition levels
-
is_compressed
public boolean is_compressed
whether the values are compressed. Which means the section of the page between definition_levels_byte_length + repetition_levels_byte_length + 1 and compressed_page_size (included) is compressed with the compression_codec. If missing it is considered compressed
-
statistics
public Statistics statistics
optional statistics for the data in this page *
-
metaDataMap
public static final Map<DataPageHeaderV2._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
DataPageHeaderV2
public DataPageHeaderV2()
-
DataPageHeaderV2
public DataPageHeaderV2(int num_values, int num_nulls, int num_rows, Encoding encoding, int definition_levels_byte_length, int repetition_levels_byte_length)
-
DataPageHeaderV2
public DataPageHeaderV2(DataPageHeaderV2 other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public DataPageHeaderV2 deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<DataPageHeaderV2,DataPageHeaderV2._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<DataPageHeaderV2,DataPageHeaderV2._Fields>
-
getNum_values
public int getNum_values()
Number of values, including NULLs, in this data page. *
-
setNum_values
public DataPageHeaderV2 setNum_values(int num_values)
Number of values, including NULLs, in this data page. *
-
unsetNum_values
public void unsetNum_values()
-
isSetNum_values
public boolean isSetNum_values()
Returns true if field num_values is set (has been assigned a value) and false otherwise
-
setNum_valuesIsSet
public void setNum_valuesIsSet(boolean value)
-
getNum_nulls
public int getNum_nulls()
Number of NULL values, in this data page. Number of non-null = num_values - num_nulls which is also the number of values in the data section *
-
setNum_nulls
public DataPageHeaderV2 setNum_nulls(int num_nulls)
Number of NULL values, in this data page. Number of non-null = num_values - num_nulls which is also the number of values in the data section *
-
unsetNum_nulls
public void unsetNum_nulls()
-
isSetNum_nulls
public boolean isSetNum_nulls()
Returns true if field num_nulls is set (has been assigned a value) and false otherwise
-
setNum_nullsIsSet
public void setNum_nullsIsSet(boolean value)
-
getNum_rows
public int getNum_rows()
Number of rows in this data page. which means pages change on record boundaries (r = 0) *
-
setNum_rows
public DataPageHeaderV2 setNum_rows(int num_rows)
Number of rows in this data page. which means pages change on record boundaries (r = 0) *
-
unsetNum_rows
public void unsetNum_rows()
-
isSetNum_rows
public boolean isSetNum_rows()
Returns true if field num_rows is set (has been assigned a value) and false otherwise
-
setNum_rowsIsSet
public void setNum_rowsIsSet(boolean value)
-
setEncoding
public DataPageHeaderV2 setEncoding(Encoding encoding)
Encoding used for data in this page *- See Also:
Encoding
-
unsetEncoding
public void unsetEncoding()
-
isSetEncoding
public boolean isSetEncoding()
Returns true if field encoding is set (has been assigned a value) and false otherwise
-
setEncodingIsSet
public void setEncodingIsSet(boolean value)
-
getDefinition_levels_byte_length
public int getDefinition_levels_byte_length()
length of the definition levels
-
setDefinition_levels_byte_length
public DataPageHeaderV2 setDefinition_levels_byte_length(int definition_levels_byte_length)
length of the definition levels
-
unsetDefinition_levels_byte_length
public void unsetDefinition_levels_byte_length()
-
isSetDefinition_levels_byte_length
public boolean isSetDefinition_levels_byte_length()
Returns true if field definition_levels_byte_length is set (has been assigned a value) and false otherwise
-
setDefinition_levels_byte_lengthIsSet
public void setDefinition_levels_byte_lengthIsSet(boolean value)
-
getRepetition_levels_byte_length
public int getRepetition_levels_byte_length()
length of the repetition levels
-
setRepetition_levels_byte_length
public DataPageHeaderV2 setRepetition_levels_byte_length(int repetition_levels_byte_length)
length of the repetition levels
-
unsetRepetition_levels_byte_length
public void unsetRepetition_levels_byte_length()
-
isSetRepetition_levels_byte_length
public boolean isSetRepetition_levels_byte_length()
Returns true if field repetition_levels_byte_length is set (has been assigned a value) and false otherwise
-
setRepetition_levels_byte_lengthIsSet
public void setRepetition_levels_byte_lengthIsSet(boolean value)
-
isIs_compressed
public boolean isIs_compressed()
whether the values are compressed. Which means the section of the page between definition_levels_byte_length + repetition_levels_byte_length + 1 and compressed_page_size (included) is compressed with the compression_codec. If missing it is considered compressed
-
setIs_compressed
public DataPageHeaderV2 setIs_compressed(boolean is_compressed)
whether the values are compressed. Which means the section of the page between definition_levels_byte_length + repetition_levels_byte_length + 1 and compressed_page_size (included) is compressed with the compression_codec. If missing it is considered compressed
-
unsetIs_compressed
public void unsetIs_compressed()
-
isSetIs_compressed
public boolean isSetIs_compressed()
Returns true if field is_compressed is set (has been assigned a value) and false otherwise
-
setIs_compressedIsSet
public void setIs_compressedIsSet(boolean value)
-
getStatistics
public Statistics getStatistics()
optional statistics for the data in this page *
-
setStatistics
public DataPageHeaderV2 setStatistics(Statistics statistics)
optional statistics for the data in this page *
-
unsetStatistics
public void unsetStatistics()
-
isSetStatistics
public boolean isSetStatistics()
Returns true if field statistics is set (has been assigned a value) and false otherwise
-
setStatisticsIsSet
public void setStatisticsIsSet(boolean value)
-
setFieldValue
public void setFieldValue(DataPageHeaderV2._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<DataPageHeaderV2,DataPageHeaderV2._Fields>
-
getFieldValue
public Object getFieldValue(DataPageHeaderV2._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<DataPageHeaderV2,DataPageHeaderV2._Fields>
-
isSet
public boolean isSet(DataPageHeaderV2._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<DataPageHeaderV2,DataPageHeaderV2._Fields>
-
equals
public boolean equals(DataPageHeaderV2 that)
-
compareTo
public int compareTo(DataPageHeaderV2 other)
- Specified by:
compareToin interfaceComparable<DataPageHeaderV2>
-
fieldForId
public DataPageHeaderV2._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<DataPageHeaderV2,DataPageHeaderV2._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
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-