Enum IndexPrecedenceOption

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<IndexPrecedenceOption>, org.kie.api.conf.KieBaseOption, org.kie.api.conf.Option, org.kie.api.conf.SingleValueKieBaseOption, org.kie.api.conf.SingleValueOption, org.kie.api.conf.SingleValueRuleBaseOption

    public enum IndexPrecedenceOption
    extends java.lang.Enum<IndexPrecedenceOption>
    implements org.kie.api.conf.SingleValueRuleBaseOption
    An Enum for Index Precedence option. drools.indexPrecedence = <pattern|equality> When creating indexes gives precedence to the equality constraints (default) or to the first indexable constraint in the pattern. DEFAULT = equality
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.kie.api.conf.OptionKey<IndexPrecedenceOption> KEY  
      static java.lang.String PROPERTY_NAME
      The property name for the index precedence option
      • Fields inherited from interface org.kie.api.conf.SingleValueRuleBaseOption

        TYPE
    • Field Detail

      • PROPERTY_NAME

        public static final java.lang.String PROPERTY_NAME
        The property name for the index precedence option
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static IndexPrecedenceOption[] 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 (IndexPrecedenceOption c : IndexPrecedenceOption.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static IndexPrecedenceOption valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getPropertyName

        public java.lang.String getPropertyName()
        Specified by:
        getPropertyName in interface org.kie.api.conf.Option
      • getValue

        public java.lang.String getValue()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<IndexPrecedenceOption>
      • toExternalForm

        public java.lang.String toExternalForm()
      • determineIndexPrecedence

        public static IndexPrecedenceOption determineIndexPrecedence​(java.lang.String mode)