- 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. OnlyPLAIN
is applicable to fixed-length types.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXTENDED
Can be compressed, and moved out-of-line if still too big.EXTERNAL
Can be moved out-of-line but not compressed.MAIN
Can be compressed, but moved out-of-line only if there is no other way to make the containing tuple fit a page.PLAIN
Never compressed or stored out-of-line.
-
Method Summary
Modifier and Type Method Description static BaseUDT.Storage
valueOf(String name)
Returns the enum constant of this type with the specified name.static BaseUDT.Storage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static BaseUDT.Storage[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BaseUDT.Storage valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-