Enum Class Encoding

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

public enum Encoding extends Enum<Encoding>
Encoding types for Parquet data.
See Also:
  • Enum Constant Details

    • PLAIN

      public static final Encoding PLAIN
      Plain encoding: values are stored back-to-back.
    • PLAIN_DICTIONARY

      public static final Encoding PLAIN_DICTIONARY
      Dictionary encoding using a plain-encoded dictionary page (deprecated in favor of RLE_DICTIONARY).
    • RLE

      public static final Encoding RLE
      Run-length / bit-packed hybrid encoding.
    • BIT_PACKED

      public static final Encoding BIT_PACKED
      Bit-packed encoding (deprecated in favor of RLE).
    • DELTA_BINARY_PACKED

      public static final Encoding DELTA_BINARY_PACKED
      Delta encoding for integers.
    • DELTA_LENGTH_BYTE_ARRAY

      public static final Encoding DELTA_LENGTH_BYTE_ARRAY
      Delta encoding for byte array lengths.
    • DELTA_BYTE_ARRAY

      public static final Encoding DELTA_BYTE_ARRAY
      Incremental (delta) encoding for byte arrays.
    • RLE_DICTIONARY

      public static final Encoding RLE_DICTIONARY
      Dictionary encoding with an RLE-encoded index page.
    • BYTE_STREAM_SPLIT

      public static final Encoding BYTE_STREAM_SPLIT
      Byte-stream split encoding for floating-point data.
    • UNKNOWN

      public static final Encoding UNKNOWN
      Placeholder for unknown/unsupported encodings found in metadata. This allows reading files that list encodings we don't recognize in the column metadata, as long as the actual pages use supported encodings.
  • Method Details

    • values

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