Enum Class BaseUDT.Storage

java.lang.Object
java.lang.Enum<BaseUDT.Storage>
org.postgresql.pljava.annotation.BaseUDT.Storage
All Implemented Interfaces:
Serializable, Comparable<BaseUDT.Storage>, Constable
Enclosing class:
BaseUDT

public static enum BaseUDT.Storage extends Enum<BaseUDT.Storage>
The supported TOAST strategies for the type's stored representation. Only PLAIN is applicable to fixed-length types.
  • Enum Constant Details

    • PLAIN

      public static final BaseUDT.Storage PLAIN
      Never compressed or stored out-of-line.
    • EXTERNAL

      public static final BaseUDT.Storage EXTERNAL
      Can be moved out-of-line but not compressed.
    • EXTENDED

      public static final BaseUDT.Storage EXTENDED
      Can be compressed, and moved out-of-line if still too big.
    • MAIN

      public static final BaseUDT.Storage MAIN
      Can be compressed, but moved out-of-line only if there is no other way to make the containing tuple fit a page.
  • Method Details

    • values

      public static BaseUDT.Storage[] 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 BaseUDT.Storage 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