Enum Class DataPageVersion
- All Implemented Interfaces:
Serializable, Comparable<DataPageVersion>, Constable
The header and layout every data page of a file is written with, set through
WriterConfig.Builder.dataPageVersion(DataPageVersion).
Both versions hold the same levels and values under the same encodings; they differ in how a page frames them. Dictionary pages are the same under either.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDATA_PAGE: the repetition and definition levels and the values are compressed together as one body, each level stream prefixed by its length.DATA_PAGE_V2: the levels are stored uncompressed ahead of the values, and the values are compressed where that makes them smaller. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataPageVersionReturns the enum constant of this class with the specified name.static DataPageVersion[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
V1
DATA_PAGE: the repetition and definition levels and the values are compressed together as one body, each level stream prefixed by its length. -
V2
DATA_PAGE_V2: the levels are stored uncompressed ahead of the values, and the values are compressed where that makes them smaller. The header states each level stream's length, whether the values are compressed, and the page's row and null counts.
-
-
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
-