Package net.hydromatic.morel.eval
Enum Prop
- All Implemented Interfaces:
Serializable,Comparable<Prop>,java.lang.constant.Constable
Property.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFile property "directory" is the path of the directory that thefilevariable maps to in this connection.Boolean property "hybrid" controls whether to try to create a hybrid execution plan that uses Apache Calcite relational algebra wherever possible.Maximum number of inlining passes.Integer property "lineWidth" controls printing.Boolean property "matchCoverageEnabled" controls whether to check the coverage of patterns.Integer property "optionalInt" is for testing.Integer property "printDepth" controls printing.Integer property "printLength" controls printing.Boolean property "relationalize" is whether to convert to relational algebra.File property "scriptDirectory" is the path of the directory where theusecommand looks for scripts.Integer property "stringDepth" is the length of strings at which ellipsis begins. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanValue(Map<Prop, Object> map) Returns the value of a boolean property.Returns the value of a file property.Returns the value of a property.intReturns the value of an integer property.static PropLooks up a property by name.Removes the value of this property from a map, returning the previous value or null.voidSets the value of a property.stringValue(Map<Prop, Object> map) Returns the value of a string property.private <T> Tstatic PropReturns 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 Details
-
DIRECTORY
File property "directory" is the path of the directory that thefilevariable maps to in this connection.The default value is the empty string; many tests use the "src/test/resources" directory; when launched via the
morelshell script, the default value is the shell's current directory. -
SCRIPT_DIRECTORY
File property "scriptDirectory" is the path of the directory where theusecommand looks for scripts. When running a script, it is generally set to the directory that contains the script. -
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
Maximum number of inlining passes. -
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
Integer property "optionalInt" is for testing. Default is null. -
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
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
Boolean property "relationalize" is whether to convert to relational algebra. Default is false. -
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
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.
-
-
Field Details
-
camelName
-
type
-
defaultValue
-
BY_NAME
-
-
Constructor Details
-
Prop
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
Looks up a property by name. Throws if not found; never returns null. -
get
Returns the value of a property. -
booleanValue
Returns the value of a boolean property. -
intValue
Returns the value of an integer property. -
stringValue
Returns the value of a string property. -
fileValue
Returns the value of a file property. -
typeValue
-
set
Sets the value of a property. Checks that its type is valid. -
remove
Removes the value of this property from a map, returning the previous value or null.
-