public static enum PageHeader._Fields extends Enum<PageHeader._Fields> implements org.apache.thrift.TFieldIdEnum
Enum Constant and Description |
---|
COMPRESSED_PAGE_SIZE
Compressed (and potentially encrypted) page size in bytes, not including this header *
|
CRC
The 32bit CRC for the page, to be be calculated as follows:
- Using the standard CRC32 algorithm
- On the data only, i.e.
|
DATA_PAGE_HEADER |
DATA_PAGE_HEADER_V2 |
DICTIONARY_PAGE_HEADER |
INDEX_PAGE_HEADER |
TYPE
the type of the page: indicates which of the *_header fields is set *
|
UNCOMPRESSED_PAGE_SIZE
Uncompressed page size in bytes (not including this header) *
|
Modifier and Type | Method and Description |
---|---|
static PageHeader._Fields |
findByName(String name)
Find the _Fields constant that matches name, or null if its not found.
|
static PageHeader._Fields |
findByThriftId(int fieldId)
Find the _Fields constant that matches fieldId, or null if its not found.
|
static PageHeader._Fields |
findByThriftIdOrThrow(int fieldId)
Find the _Fields constant that matches fieldId, throwing an exception
if it is not found.
|
String |
getFieldName() |
short |
getThriftFieldId() |
static PageHeader._Fields |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PageHeader._Fields[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PageHeader._Fields TYPE
PageType
public static final PageHeader._Fields UNCOMPRESSED_PAGE_SIZE
public static final PageHeader._Fields COMPRESSED_PAGE_SIZE
public static final PageHeader._Fields CRC
public static final PageHeader._Fields DATA_PAGE_HEADER
public static final PageHeader._Fields INDEX_PAGE_HEADER
public static final PageHeader._Fields DICTIONARY_PAGE_HEADER
public static final PageHeader._Fields DATA_PAGE_HEADER_V2
public static PageHeader._Fields[] values()
for (PageHeader._Fields c : PageHeader._Fields.values()) System.out.println(c);
public static PageHeader._Fields valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static PageHeader._Fields findByThriftId(int fieldId)
public static PageHeader._Fields findByThriftIdOrThrow(int fieldId)
public static PageHeader._Fields findByName(String name)
public short getThriftFieldId()
getThriftFieldId
in interface org.apache.thrift.TFieldIdEnum
public String getFieldName()
getFieldName
in interface org.apache.thrift.TFieldIdEnum
Copyright © 2022 The Apache Software Foundation. All rights reserved.