Enum MatemathicsOperator

  • All Implemented Interfaces:
    Serializable, Comparable<MatemathicsOperator>

    public enum MatemathicsOperator
    extends Enum<MatemathicsOperator>
    Author:
    Luca Frosini (ISTI - CNR) OrientDB supports the eval() function to execute complex operations. Example: SELECT eval( "amount * 120 / 100 - discount" ) as finalPrice from Order See https://www.orientdb.com/docs/3.0.x/sql/SQL-Where.html#mathematics-operators https://www.orientdb.com/docs/3.0.x/sql/SQL-Syntax.html#math-operators https://www.orientdb.com/docs/3.0.x/sql/SQL-Syntax.html#math-operators-precedence https://www.orientdb.com/docs/3.0.x/sql/SQL-Syntax.html#array-concatenation
    • Method Detail

      • values

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

        public static MatemathicsOperator 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
      • getOperatorKey

        protected String getOperatorKey()
      • getDbOperator

        protected String getDbOperator()
      • getDescription

        public String getDescription()
      • getOperators

        public static Set<String> getOperators()
      • getError

        protected String getError​(String key,
                                  Class<?> clazz,
                                  boolean mandatory)
      • generateFieldToEmit

        public String generateFieldToEmit​(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode,
                                          String fieldPrefix)
      • generateFieldToEmit

        protected StringBuffer generateFieldToEmit​(org.gcube.com.fasterxml.jackson.databind.node.ArrayNode arrayNode,
                                                   String fieldsSeparator,
                                                   String fieldPrefix)