public enum JavaRowFormat extends java.lang.Enum<JavaRowFormat>
Enum Constant and Description |
---|
ARRAY |
CUSTOM |
LIST
A list that is comparable and immutable.
|
ROW
See
Row |
SCALAR |
Modifier and Type | Method and Description |
---|---|
Expression |
comparer() |
abstract Expression |
field(Expression expression,
int field,
java.lang.reflect.Type fromType,
java.lang.reflect.Type fieldType)
Returns a reference to a particular field.
|
(package private) abstract java.lang.reflect.Type |
javaFieldClass(JavaTypeFactory typeFactory,
RelDataType type,
int index)
Returns the java class that is used to physically store the given field.
|
(package private) abstract java.lang.reflect.Type |
javaRowClass(JavaTypeFactory typeFactory,
RelDataType type) |
JavaRowFormat |
optimize(RelDataType rowType) |
abstract Expression |
record(java.lang.reflect.Type javaRowClass,
java.util.List<Expression> expressions) |
static JavaRowFormat |
valueOf(java.lang.String name)
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.
|
public static final JavaRowFormat CUSTOM
public static final JavaRowFormat SCALAR
public static final JavaRowFormat LIST
public static final JavaRowFormat ROW
Row
public static final JavaRowFormat ARRAY
public static JavaRowFormat[] values()
for (JavaRowFormat c : JavaRowFormat.values()) System.out.println(c);
public static JavaRowFormat valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic JavaRowFormat optimize(RelDataType rowType)
abstract java.lang.reflect.Type javaRowClass(JavaTypeFactory typeFactory, RelDataType type)
abstract java.lang.reflect.Type javaFieldClass(JavaTypeFactory typeFactory, RelDataType type, int index)
Object.class
in ARRAY
case.typeFactory
- type factory to resolve java typestype
- row typeindex
- field indexpublic abstract Expression record(java.lang.reflect.Type javaRowClass, java.util.List<Expression> expressions)
public Expression comparer()
public abstract Expression field(Expression expression, int field, java.lang.reflect.Type fromType, java.lang.reflect.Type fieldType)
fromType
may be null; if null, uses the natural type of the
field.
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.