Enum JavaRowFormat
- All Implemented Interfaces:
Serializable
,Comparable<JavaRowFormat>
,Constable
How a row is represented as a Java value.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable Expression
comparer()
copy
(ParameterExpression parameter, ParameterExpression outputArray, int outputStartIndex, int length) Returns an expression that copies the fields of a row of this type to the array.abstract Expression
field
(Expression expression, int field, @Nullable Type fromType, Type fieldType) Returns a reference to a particular field.optimize
(RelDataType rowType) abstract Expression
record
(Type javaRowClass, List<Expression> expressions) static JavaRowFormat
Returns the enum constant of this type with the specified name.static JavaRowFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CUSTOM
-
SCALAR
-
LIST
A list that is comparable and immutable. Useful for records with 0 fields (empty list is a good singleton) but sometimes also for records with 2 or more fields that you need to be comparable, say as a key in a lookup. -
ROW
SeeRow
. -
ARRAY
-
-
Method Details
-
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
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
-
optimize
-
record
-
comparer
-
field
public abstract Expression field(Expression expression, int field, @Nullable Type fromType, Type fieldType) Returns a reference to a particular field.fromType
may be null; if null, uses the natural type of the field. -
copy
public abstract List<Statement> copy(ParameterExpression parameter, ParameterExpression outputArray, int outputStartIndex, int length) Returns an expression that copies the fields of a row of this type to the array.
-