@Generated(value="Autogenerated by Thrift Compiler (0.14.0)", date="2021-12-23") public class PageHeader extends Object implements org.apache.thrift.TBase<PageHeader,PageHeader._Fields>, Serializable, Cloneable, Comparable<PageHeader>
Modifier and Type | Class and Description |
---|---|
static class |
PageHeader._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
int |
compressed_page_size
Compressed (and potentially encrypted) page size in bytes, not including this header *
|
int |
crc
The 32bit CRC for the page, to be be calculated as follows:
- Using the standard CRC32 algorithm
- On the data only, i.e.
|
DataPageHeader |
data_page_header |
DataPageHeaderV2 |
data_page_header_v2 |
DictionaryPageHeader |
dictionary_page_header |
IndexPageHeader |
index_page_header |
static Map<PageHeader._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
PageType |
type
the type of the page: indicates which of the *_header fields is set *
|
int |
uncompressed_page_size
Uncompressed page size in bytes (not including this header) *
|
Constructor and Description |
---|
PageHeader() |
PageHeader(PageHeader other)
Performs a deep copy on other.
|
PageHeader(PageType type,
int uncompressed_page_size,
int compressed_page_size) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(PageHeader other) |
PageHeader |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(PageHeader that) |
PageHeader._Fields |
fieldForId(int fieldId) |
int |
getCompressed_page_size()
Compressed (and potentially encrypted) page size in bytes, not including this header *
|
int |
getCrc()
The 32bit CRC for the page, to be be calculated as follows:
- Using the standard CRC32 algorithm
- On the data only, i.e.
|
DataPageHeaderV2 |
getData_page_header_v2() |
DataPageHeader |
getData_page_header() |
DictionaryPageHeader |
getDictionary_page_header() |
Object |
getFieldValue(PageHeader._Fields field) |
IndexPageHeader |
getIndex_page_header() |
PageType |
getType()
the type of the page: indicates which of the *_header fields is set *
|
int |
getUncompressed_page_size()
Uncompressed page size in bytes (not including this header) *
|
int |
hashCode() |
boolean |
isSet(PageHeader._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetCompressed_page_size()
Returns true if field compressed_page_size is set (has been assigned a value) and false otherwise
|
boolean |
isSetCrc()
Returns true if field crc is set (has been assigned a value) and false otherwise
|
boolean |
isSetData_page_header_v2()
Returns true if field data_page_header_v2 is set (has been assigned a value) and false otherwise
|
boolean |
isSetData_page_header()
Returns true if field data_page_header is set (has been assigned a value) and false otherwise
|
boolean |
isSetDictionary_page_header()
Returns true if field dictionary_page_header is set (has been assigned a value) and false otherwise
|
boolean |
isSetIndex_page_header()
Returns true if field index_page_header is set (has been assigned a value) and false otherwise
|
boolean |
isSetType()
Returns true if field type is set (has been assigned a value) and false otherwise
|
boolean |
isSetUncompressed_page_size()
Returns true if field uncompressed_page_size is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
PageHeader |
setCompressed_page_size(int compressed_page_size)
Compressed (and potentially encrypted) page size in bytes, not including this header *
|
void |
setCompressed_page_sizeIsSet(boolean value) |
PageHeader |
setCrc(int crc)
The 32bit CRC for the page, to be be calculated as follows:
- Using the standard CRC32 algorithm
- On the data only, i.e.
|
void |
setCrcIsSet(boolean value) |
PageHeader |
setData_page_header_v2(DataPageHeaderV2 data_page_header_v2) |
void |
setData_page_header_v2IsSet(boolean value) |
PageHeader |
setData_page_header(DataPageHeader data_page_header) |
void |
setData_page_headerIsSet(boolean value) |
PageHeader |
setDictionary_page_header(DictionaryPageHeader dictionary_page_header) |
void |
setDictionary_page_headerIsSet(boolean value) |
void |
setFieldValue(PageHeader._Fields field,
Object value) |
PageHeader |
setIndex_page_header(IndexPageHeader index_page_header) |
void |
setIndex_page_headerIsSet(boolean value) |
PageHeader |
setType(PageType type)
the type of the page: indicates which of the *_header fields is set *
|
void |
setTypeIsSet(boolean value) |
PageHeader |
setUncompressed_page_size(int uncompressed_page_size)
Uncompressed page size in bytes (not including this header) *
|
void |
setUncompressed_page_sizeIsSet(boolean value) |
String |
toString() |
void |
unsetCompressed_page_size() |
void |
unsetCrc() |
void |
unsetData_page_header_v2() |
void |
unsetData_page_header() |
void |
unsetDictionary_page_header() |
void |
unsetIndex_page_header() |
void |
unsetType() |
void |
unsetUncompressed_page_size() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public PageType type
PageType
public int uncompressed_page_size
public int compressed_page_size
public int crc
public DataPageHeader data_page_header
public IndexPageHeader index_page_header
public DictionaryPageHeader dictionary_page_header
public DataPageHeaderV2 data_page_header_v2
public static final Map<PageHeader._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public PageHeader()
public PageHeader(PageType type, int uncompressed_page_size, int compressed_page_size)
public PageHeader(PageHeader other)
public PageHeader deepCopy()
deepCopy
in interface org.apache.thrift.TBase<PageHeader,PageHeader._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<PageHeader,PageHeader._Fields>
public PageType getType()
PageType
public PageHeader setType(PageType type)
PageType
public void unsetType()
public boolean isSetType()
public void setTypeIsSet(boolean value)
public int getUncompressed_page_size()
public PageHeader setUncompressed_page_size(int uncompressed_page_size)
public void unsetUncompressed_page_size()
public boolean isSetUncompressed_page_size()
public void setUncompressed_page_sizeIsSet(boolean value)
public int getCompressed_page_size()
public PageHeader setCompressed_page_size(int compressed_page_size)
public void unsetCompressed_page_size()
public boolean isSetCompressed_page_size()
public void setCompressed_page_sizeIsSet(boolean value)
public int getCrc()
public PageHeader setCrc(int crc)
public void unsetCrc()
public boolean isSetCrc()
public void setCrcIsSet(boolean value)
public DataPageHeader getData_page_header()
public PageHeader setData_page_header(DataPageHeader data_page_header)
public void unsetData_page_header()
public boolean isSetData_page_header()
public void setData_page_headerIsSet(boolean value)
public IndexPageHeader getIndex_page_header()
public PageHeader setIndex_page_header(IndexPageHeader index_page_header)
public void unsetIndex_page_header()
public boolean isSetIndex_page_header()
public void setIndex_page_headerIsSet(boolean value)
public DictionaryPageHeader getDictionary_page_header()
public PageHeader setDictionary_page_header(DictionaryPageHeader dictionary_page_header)
public void unsetDictionary_page_header()
public boolean isSetDictionary_page_header()
public void setDictionary_page_headerIsSet(boolean value)
public DataPageHeaderV2 getData_page_header_v2()
public PageHeader setData_page_header_v2(DataPageHeaderV2 data_page_header_v2)
public void unsetData_page_header_v2()
public boolean isSetData_page_header_v2()
public void setData_page_header_v2IsSet(boolean value)
public void setFieldValue(PageHeader._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<PageHeader,PageHeader._Fields>
public Object getFieldValue(PageHeader._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<PageHeader,PageHeader._Fields>
public boolean isSet(PageHeader._Fields field)
isSet
in interface org.apache.thrift.TBase<PageHeader,PageHeader._Fields>
public boolean equals(PageHeader that)
public int compareTo(PageHeader other)
compareTo
in interface Comparable<PageHeader>
public PageHeader._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<PageHeader,PageHeader._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TSerializable
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TSerializable
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2021 The Apache Software Foundation. All rights reserved.