Enum EnumerableRel.Prefer
- java.lang.Object
-
- java.lang.Enum<EnumerableRel.Prefer>
-
- org.apache.calcite.adapter.enumerable.EnumerableRel.Prefer
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EnumerableRel.Prefer>
- Enclosing interface:
- EnumerableRel
public static enum EnumerableRel.Prefer extends java.lang.Enum<EnumerableRel.Prefer>
Preferred physical type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANY
Consumer has no preferred representation.ARRAY
Records must be represented as arrays.ARRAY_NICE
Consumer would prefer that records are represented as arrays, but can accommodate records represented as objects.CUSTOM
Records must be represented as objects.CUSTOM_NICE
Consumer would prefer that records are represented as objects, but can accommodate records represented as arrays.
-
Constructor Summary
Constructors Modifier Constructor Description private
Prefer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EnumerableRel.Prefer
of(JavaRowFormat format)
JavaRowFormat
prefer(JavaRowFormat format)
JavaRowFormat
preferArray()
JavaRowFormat
preferCustom()
static EnumerableRel.Prefer
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EnumerableRel.Prefer[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ARRAY
public static final EnumerableRel.Prefer ARRAY
Records must be represented as arrays.
-
ARRAY_NICE
public static final EnumerableRel.Prefer ARRAY_NICE
Consumer would prefer that records are represented as arrays, but can accommodate records represented as objects.
-
CUSTOM
public static final EnumerableRel.Prefer CUSTOM
Records must be represented as objects.
-
CUSTOM_NICE
public static final EnumerableRel.Prefer CUSTOM_NICE
Consumer would prefer that records are represented as objects, but can accommodate records represented as arrays.
-
ANY
public static final EnumerableRel.Prefer ANY
Consumer has no preferred representation.
-
-
Method Detail
-
values
public static EnumerableRel.Prefer[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EnumerableRel.Prefer c : EnumerableRel.Prefer.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EnumerableRel.Prefer valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
preferCustom
public JavaRowFormat preferCustom()
-
preferArray
public JavaRowFormat preferArray()
-
prefer
public JavaRowFormat prefer(JavaRowFormat format)
-
of
public EnumerableRel.Prefer of(JavaRowFormat format)
-
-