public static enum EnumerableRel.Prefer extends Enum<EnumerableRel.Prefer>
| Enum Constant and 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.
|
| Modifier and Type | Method and Description |
|---|---|
EnumerableRel.Prefer |
of(JavaRowFormat format) |
JavaRowFormat |
prefer(JavaRowFormat format) |
JavaRowFormat |
preferArray() |
JavaRowFormat |
preferCustom() |
static EnumerableRel.Prefer |
valueOf(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.
|
public static final EnumerableRel.Prefer ARRAY
public static final EnumerableRel.Prefer ARRAY_NICE
public static final EnumerableRel.Prefer CUSTOM
public static final EnumerableRel.Prefer CUSTOM_NICE
public static final EnumerableRel.Prefer ANY
public static EnumerableRel.Prefer[] values()
for (EnumerableRel.Prefer c : EnumerableRel.Prefer.values()) System.out.println(c);
public static EnumerableRel.Prefer 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 preferCustom()
public JavaRowFormat preferArray()
public JavaRowFormat prefer(JavaRowFormat format)
public EnumerableRel.Prefer of(JavaRowFormat format)
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.