Package org.apache.parquet.format
Class PageHeader
java.lang.Object
org.apache.parquet.format.PageHeader
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<PageHeader>,org.apache.thrift.TBase<PageHeader,,PageHeader._Fields> org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.23.0)",
date="2026-08-06")
public class PageHeader
extends Object
implements org.apache.thrift.TBase<PageHeader,PageHeader._Fields>, Serializable, Cloneable, Comparable<PageHeader>
- 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 TypeFieldDescriptionintCompressed (and potentially encrypted) page size in bytes, not including this header *intThe 32-bit CRC checksum for the page, to be calculated as follows: - The standard CRC32 algorithm is used (with polynomial 0x04C11DB7, the same as in e.g.static final Map<PageHeader._Fields,org.apache.thrift.meta_data.FieldMetaData> the type of the page: indicates which of the *_header fields is set *intUncompressed page size in bytes (not including this header) * -
Constructor Summary
ConstructorsConstructorDescriptionPageHeader(PageHeader other) Performs a deep copy on other.PageHeader(PageType type, int uncompressed_page_size, int compressed_page_size) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()intcompareTo(PageHeader other) deepCopy()booleanbooleanequals(PageHeader that) fieldForId(int fieldId) intCompressed (and potentially encrypted) page size in bytes, not including this header *intgetCrc()The 32-bit CRC checksum for the page, to be calculated as follows: - The standard CRC32 algorithm is used (with polynomial 0x04C11DB7, the same as in e.g.getFieldValue(PageHeader._Fields field) getType()the type of the page: indicates which of the *_header fields is set *intUncompressed page size in bytes (not including this header) *inthashCode()booleanisSet(PageHeader._Fields field) Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanReturns true if field compressed_page_size is set (has been assigned a value) and false otherwisebooleanisSetCrc()Returns true if field crc is set (has been assigned a value) and false otherwisebooleanReturns true if field data_page_header is set (has been assigned a value) and false otherwisebooleanReturns true if field data_page_header_v2 is set (has been assigned a value) and false otherwisebooleanReturns true if field dictionary_page_header is set (has been assigned a value) and false otherwisebooleanReturns true if field index_page_header is set (has been assigned a value) and false otherwisebooleanReturns true if field type is set (has been assigned a value) and false otherwisebooleanReturns true if field uncompressed_page_size is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot) setCompressed_page_size(int compressed_page_size) Compressed (and potentially encrypted) page size in bytes, not including this header *voidsetCompressed_page_sizeIsSet(boolean value) setCrc(int crc) The 32-bit CRC checksum for the page, to be calculated as follows: - The standard CRC32 algorithm is used (with polynomial 0x04C11DB7, the same as in e.g.voidsetCrcIsSet(boolean value) setData_page_header(DataPageHeader data_page_header) setData_page_header_v2(DataPageHeaderV2 data_page_header_v2) voidsetData_page_header_v2IsSet(boolean value) voidsetData_page_headerIsSet(boolean value) setDictionary_page_header(DictionaryPageHeader dictionary_page_header) voidsetDictionary_page_headerIsSet(boolean value) voidsetFieldValue(PageHeader._Fields field, Object value) setIndex_page_header(IndexPageHeader index_page_header) voidsetIndex_page_headerIsSet(boolean value) the type of the page: indicates which of the *_header fields is set *voidsetTypeIsSet(boolean value) setUncompressed_page_size(int uncompressed_page_size) Uncompressed page size in bytes (not including this header) *voidsetUncompressed_page_sizeIsSet(boolean value) toString()voidvoidunsetCrc()voidvoidvoidvoidvoidvoidvoidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
type
the type of the page: indicates which of the *_header fields is set *- See Also:
-
uncompressed_page_size
public int uncompressed_page_sizeUncompressed page size in bytes (not including this header) * -
compressed_page_size
public int compressed_page_sizeCompressed (and potentially encrypted) page size in bytes, not including this header * -
crc
public int crcThe 32-bit CRC checksum for the page, to be calculated as follows: - The standard CRC32 algorithm is used (with polynomial 0x04C11DB7, the same as in e.g. GZIP). - All page types can have a CRC (v1 and v2 data pages, dictionary pages, etc.). - The CRC is computed on the serialization binary representation of the page (as written to disk), excluding the page header. For example, for v1 data pages, the CRC is computed on the concatenation of repetition levels, definition levels and column values (optionally compressed, optionally encrypted). - The CRC computation therefore takes place after any compression and encryption steps, if any. If enabled, this allows for disabling checksumming in HDFS if only a few pages need to be read. -
data_page_header
-
index_page_header
-
dictionary_page_header
-
data_page_header_v2
-
metaDataMap
-
-
Constructor Details
-
PageHeader
public PageHeader() -
PageHeader
-
PageHeader
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<PageHeader,PageHeader._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<PageHeader,PageHeader._Fields>
-
getType
the type of the page: indicates which of the *_header fields is set *- See Also:
-
setType
the type of the page: indicates which of the *_header fields is set *- See Also:
-
unsetType
public void unsetType() -
isSetType
public boolean isSetType()Returns true if field type is set (has been assigned a value) and false otherwise -
setTypeIsSet
public void setTypeIsSet(boolean value) -
getUncompressed_page_size
public int getUncompressed_page_size()Uncompressed page size in bytes (not including this header) * -
setUncompressed_page_size
Uncompressed page size in bytes (not including this header) * -
unsetUncompressed_page_size
public void unsetUncompressed_page_size() -
isSetUncompressed_page_size
public boolean isSetUncompressed_page_size()Returns true if field uncompressed_page_size is set (has been assigned a value) and false otherwise -
setUncompressed_page_sizeIsSet
public void setUncompressed_page_sizeIsSet(boolean value) -
getCompressed_page_size
public int getCompressed_page_size()Compressed (and potentially encrypted) page size in bytes, not including this header * -
setCompressed_page_size
Compressed (and potentially encrypted) page size in bytes, not including this header * -
unsetCompressed_page_size
public void unsetCompressed_page_size() -
isSetCompressed_page_size
public boolean isSetCompressed_page_size()Returns true if field compressed_page_size is set (has been assigned a value) and false otherwise -
setCompressed_page_sizeIsSet
public void setCompressed_page_sizeIsSet(boolean value) -
getCrc
public int getCrc()The 32-bit CRC checksum for the page, to be calculated as follows: - The standard CRC32 algorithm is used (with polynomial 0x04C11DB7, the same as in e.g. GZIP). - All page types can have a CRC (v1 and v2 data pages, dictionary pages, etc.). - The CRC is computed on the serialization binary representation of the page (as written to disk), excluding the page header. For example, for v1 data pages, the CRC is computed on the concatenation of repetition levels, definition levels and column values (optionally compressed, optionally encrypted). - The CRC computation therefore takes place after any compression and encryption steps, if any. If enabled, this allows for disabling checksumming in HDFS if only a few pages need to be read. -
setCrc
The 32-bit CRC checksum for the page, to be calculated as follows: - The standard CRC32 algorithm is used (with polynomial 0x04C11DB7, the same as in e.g. GZIP). - All page types can have a CRC (v1 and v2 data pages, dictionary pages, etc.). - The CRC is computed on the serialization binary representation of the page (as written to disk), excluding the page header. For example, for v1 data pages, the CRC is computed on the concatenation of repetition levels, definition levels and column values (optionally compressed, optionally encrypted). - The CRC computation therefore takes place after any compression and encryption steps, if any. If enabled, this allows for disabling checksumming in HDFS if only a few pages need to be read. -
unsetCrc
public void unsetCrc() -
isSetCrc
public boolean isSetCrc()Returns true if field crc is set (has been assigned a value) and false otherwise -
setCrcIsSet
public void setCrcIsSet(boolean value) -
getData_page_header
-
setData_page_header
-
unsetData_page_header
public void unsetData_page_header() -
isSetData_page_header
public boolean isSetData_page_header()Returns true if field data_page_header is set (has been assigned a value) and false otherwise -
setData_page_headerIsSet
public void setData_page_headerIsSet(boolean value) -
getIndex_page_header
-
setIndex_page_header
-
unsetIndex_page_header
public void unsetIndex_page_header() -
isSetIndex_page_header
public boolean isSetIndex_page_header()Returns true if field index_page_header is set (has been assigned a value) and false otherwise -
setIndex_page_headerIsSet
public void setIndex_page_headerIsSet(boolean value) -
getDictionary_page_header
-
setDictionary_page_header
-
unsetDictionary_page_header
public void unsetDictionary_page_header() -
isSetDictionary_page_header
public boolean isSetDictionary_page_header()Returns true if field dictionary_page_header is set (has been assigned a value) and false otherwise -
setDictionary_page_headerIsSet
public void setDictionary_page_headerIsSet(boolean value) -
getData_page_header_v2
-
setData_page_header_v2
-
unsetData_page_header_v2
public void unsetData_page_header_v2() -
isSetData_page_header_v2
public boolean isSetData_page_header_v2()Returns true if field data_page_header_v2 is set (has been assigned a value) and false otherwise -
setData_page_header_v2IsSet
public void setData_page_header_v2IsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<PageHeader,PageHeader._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<PageHeader,PageHeader._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<PageHeader,PageHeader._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<PageHeader>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<PageHeader,PageHeader._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
-