public static enum PageHeader._Fields extends Enum<PageHeader._Fields> implements org.apache.thrift.TFieldIdEnum
| Enum Constant and Description |
|---|
COMPRESSED_PAGE_SIZE
Compressed page size in bytes (not including this header) *
|
CRC
32bit crc for the data below.
|
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
PageTypepublic 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.TFieldIdEnumpublic String getFieldName()
getFieldName in interface org.apache.thrift.TFieldIdEnumCopyright © 2015 The Apache Software Foundation. All rights reserved.