Enum Class PageType
- All Implemented Interfaces:
Serializable, Comparable<PageType>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA v1 data page: the repetition levels, definition levels and values are compressed together as a single payload.A v2 data page: the repetition and definition levels are stored uncompressed and length-prefixed ahead of the compressed values, so they can be read without decompressing the page.The dictionary for a column chunk.A page holding an index into the column chunk.Placeholder for a page type found in metadata that is not recognized. -
Method Summary
-
Enum Constant Details
-
DATA_PAGE
A v1 data page: the repetition levels, definition levels and values are compressed together as a single payload. -
INDEX_PAGE
A page holding an index into the column chunk. Defined by the format, but not written by any known writer; the column index and offset index serve this purpose instead. -
DICTIONARY_PAGE
The dictionary for a column chunk. The chunk's dictionary-encoded data pages store indexes into it rather than values. -
DATA_PAGE_V2
A v2 data page: the repetition and definition levels are stored uncompressed and length-prefixed ahead of the compressed values, so they can be read without decompressing the page. -
UNKNOWN
Placeholder for a page type found in metadata that is not recognized. Reported only throughColumnMetaData.encodingStats(), whose counts are informational; a page whose own header declares an unrecognized type is rejected when read, since it cannot be decoded.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-