Package net.hydromatic.morel.eval
Enum Prop
- java.lang.Object
-
- java.lang.Enum<Prop>
-
- net.hydromatic.morel.eval.Prop
-
- All Implemented Interfaces:
Serializable,Comparable<Prop>
public enum Prop extends Enum<Prop>
Property.- See Also:
Session.map
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HYBRIDBoolean property "hybrid" controls whether to try to create a hybrid execution plan that uses Apache Calcite relational algebra wherever possible.INLINE_PASS_COUNTMaximum number of inlining passes.LINE_WIDTHInteger property "lineWidth" controls printing.MATCH_COVERAGE_ENABLEDBoolean property "matchCoverageEnabled" controls whether to check the coverage of patterns.OPTIONAL_INTInteger property "optionalInt" is for testing.PRINT_DEPTHInteger property "printDepth" controls printing.PRINT_LENGTHInteger property "printLength" controls printing.RELATIONALIZEBoolean property "relationalize" is whether to convert to relational algebra.STRING_DEPTHInteger property "stringDepth" is the length of strings at which ellipsis begins.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbooleanValue(Map<Prop,Object> map)Returns the value of a boolean property.Objectget(Map<Prop,Object> map)Returns the value of a property.intintValue(Map<Prop,Object> map)Returns the value of an integer property.static Proplookup(String propName)Looks up a property by name.Objectremove(Map<Prop,Object> map)Removes the value of this property from a map, returning the previous value or null.voidset(Map<Prop,Object> map, Object value)Sets the value of a property.private <T> TtypeValue(Object o)static PropvalueOf(String name)Returns the enum constant of this type with the specified name.static Prop[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HYBRID
public static final Prop HYBRID
Boolean property "hybrid" controls whether to try to create a hybrid execution plan that uses Apache Calcite relational algebra wherever possible. Default is false.
-
INLINE_PASS_COUNT
public static final Prop INLINE_PASS_COUNT
Maximum number of inlining passes.
-
MATCH_COVERAGE_ENABLED
public static final Prop MATCH_COVERAGE_ENABLED
Boolean property "matchCoverageEnabled" controls whether to check the coverage of patterns. If true (the default), Morel warns if patterns are redundant and gives errors if patterns are not exhaustive. If false, Morel does not analyze pattern coverage, and therefore will not give warnings or errors.
-
OPTIONAL_INT
public static final Prop OPTIONAL_INT
Integer property "optionalInt" is for testing. Default is null.
-
PRINT_DEPTH
public static final Prop PRINT_DEPTH
Integer property "printDepth" controls printing. The depth of nesting of recursive data structure at which ellipsis begins.It is based upon the "printDepth" property in the PRINTCONTROL signature of the Standard Basis Library. Default is 5.
-
PRINT_LENGTH
public static final Prop PRINT_LENGTH
Integer property "printLength" controls printing. The length of lists at which ellipsis begins.It is based upon the "printLength" property in the PRINTCONTROL signature of the Standard Basis Library. Default is 12.
-
RELATIONALIZE
public static final Prop RELATIONALIZE
Boolean property "relationalize" is whether to convert to relational algebra. Default is false.
-
STRING_DEPTH
public static final Prop STRING_DEPTH
Integer property "stringDepth" is the length of strings at which ellipsis begins.It is based upon the "stringDepth" property in the PRINTCONTROL signature of the Standard Basis Library. Default is 70.
-
LINE_WIDTH
public static final Prop LINE_WIDTH
Integer property "lineWidth" controls printing. The length at which lines are wrapped.It is based upon the "linewidth" property in the PRINTCONTROL signature of the Standard Basis Library. Default is 79.
-
-
Method Detail
-
values
public static Prop[] 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 (Prop c : Prop.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Prop 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
-
lookup
public static Prop lookup(String propName)
Looks up a property by name. Throws if not found; never returns null.
-
booleanValue
public boolean booleanValue(Map<Prop,Object> map)
Returns the value of a boolean property.
-
typeValue
private <T> T typeValue(Object o)
-
set
public void set(Map<Prop,Object> map, Object value)
Sets the value of a property. Checks that its type is valid.
-
-