Enum Prop

java.lang.Object
java.lang.Enum<Prop>
net.hydromatic.morel.eval.Prop
All Implemented Interfaces:
Serializable, Comparable<Prop>, java.lang.constant.Constable

public enum Prop extends Enum<Prop>
Property.
See Also:
  • Enum Constant Details

    • DIRECTORY

      public static final Prop DIRECTORY
      File property "directory" is the path of the directory that the file variable maps to in this connection.

      The default value is the empty string; many tests use the "src/test/resources" directory; when launched via the morel shell script, the default value is the shell's current directory.

    • SCRIPT_DIRECTORY

      public static final Prop SCRIPT_DIRECTORY
      File property "scriptDirectory" is the path of the directory where the use command looks for scripts. When running a script, it is generally set to the directory that contains the script.
    • 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.
    • 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.

  • Field Details

    • camelName

      public final String camelName
    • type

      private final Class<?> type
    • defaultValue

      private final Object defaultValue
    • BY_NAME

      public static final com.google.common.collect.ImmutableMap<String,Prop> BY_NAME
  • Constructor Details

  • Method Details

    • values

      public static Prop[] 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

      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 name
      NullPointerException - 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.
    • get

      public Object get(Map<Prop,Object> map)
      Returns the value of a property.
    • booleanValue

      public boolean booleanValue(Map<Prop,Object> map)
      Returns the value of a boolean property.
    • intValue

      public int intValue(Map<Prop,Object> map)
      Returns the value of an integer property.
    • stringValue

      public String stringValue(Map<Prop,Object> map)
      Returns the value of a string property.
    • fileValue

      public File fileValue(Map<Prop,Object> map)
      Returns the value of a file 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.
    • remove

      public Object remove(Map<Prop,Object> map)
      Removes the value of this property from a map, returning the previous value or null.