Package net.hydromatic.morel.ast
Enum FromBuilder.TupleType
- java.lang.Object
-
- java.lang.Enum<FromBuilder.TupleType>
-
- net.hydromatic.morel.ast.FromBuilder.TupleType
-
- All Implemented Interfaces:
Serializable,Comparable<FromBuilder.TupleType>
- Enclosing class:
- FromBuilder
private static enum FromBuilder.TupleType extends Enum<FromBuilder.TupleType>
Category of expression passed to "yield".
-
-
Constructor Summary
Constructors Modifier Constructor Description privateTupleType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FromBuilder.TupleTypevalueOf(String name)Returns the enum constant of this type with the specified name.static FromBuilder.TupleType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RENAME
public static final FromBuilder.TupleType RENAME
Tuple whose right side are the current fields, e.g. "{a = deptno, b = dname}".
-
IDENTITY
public static final FromBuilder.TupleType IDENTITY
Tuple whose right side are the current fields and left side are the same as the right, e.g. "{deptno = deptno, dname = dname}".
-
OTHER
public static final FromBuilder.TupleType OTHER
Any other tuple, e.g. "{a = deptno + 1, dname = dname}", "{deptno = deptno}" (too few fields).
-
-
Method Detail
-
values
public static FromBuilder.TupleType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FromBuilder.TupleType c : FromBuilder.TupleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FromBuilder.TupleType valueOf(String name)
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
-
-