public enum JavaRowFormat extends 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,
Type fromType,
Type fieldType)
Returns a reference to a particular field.
|
(package private) abstract Type |
javaFieldClass(JavaTypeFactory typeFactory,
RelDataType type,
int index)
Returns the java class that is used to physically store the given field.
|
(package private) abstract Type |
javaRowClass(JavaTypeFactory typeFactory,
RelDataType type) |
JavaRowFormat |
optimize(RelDataType rowType) |
abstract Expression |
record(Type javaRowClass,
List<Expression> expressions) |
static JavaRowFormat |
valueOf(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
Rowpublic static final JavaRowFormat ARRAY
public static JavaRowFormat[] values()
for (JavaRowFormat c : JavaRowFormat.values()) System.out.println(c);
public static JavaRowFormat valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic JavaRowFormat optimize(RelDataType rowType)
abstract Type javaRowClass(JavaTypeFactory typeFactory, RelDataType type)
abstract 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(Type javaRowClass, List<Expression> expressions)
public Expression comparer()
public abstract Expression field(Expression expression, int field, Type fromType, Type fieldType)
fromType may be null; if null, uses the natural type of the
field.
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.