Enum Class DataPageVersion

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

public enum DataPageVersion extends Enum<DataPageVersion>

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.

  • Enum Constant Details

    • V1

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

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

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