Enum JavaRowFormat
- All Implemented Interfaces:
- Serializable,- Comparable<JavaRowFormat>,- Constable
How a row is represented as a Java value.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier and TypeMethodDescription@Nullable Expressioncomparer()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 Expressionfield(Expression expression, int field, @Nullable Type fromType, Type fieldType) Returns a reference to a particular field.optimize(RelDataType rowType) abstract Expressionrecord(Type javaRowClass, List<Expression> expressions) static JavaRowFormatReturns 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
- 
LISTA 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.
- 
ROWSeeRow.
- 
ARRAY
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
optimize
- 
record
- 
comparer
- 
fieldpublic abstract Expression field(Expression expression, int field, @Nullable Type fromType, Type fieldType) Returns a reference to a particular field.fromTypemay be null; if null, uses the natural type of the field.
- 
copypublic 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.
 
-