Enum Class PageType

java.lang.Object
java.lang.Enum<PageType>
dev.hardwood.metadata.PageType
All Implemented Interfaces:
Serializable, Comparable<PageType>, Constable

public enum PageType extends Enum<PageType>
The kind of page stored in a column chunk.
See Also:
  • Enum Constant Details

    • DATA_PAGE

      public static final PageType DATA_PAGE
      A v1 data page: the repetition levels, definition levels and values are compressed together as a single payload.
    • INDEX_PAGE

      public static final PageType 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

      public static final PageType 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

      public static final PageType 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

      public static final PageType UNKNOWN
      Placeholder for a page type found in metadata that is not recognized. Reported only through ColumnMetaData.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

      public static PageType[] 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

      public static PageType valueOf(String name)
      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 name
      NullPointerException - if the argument is null