Enum Class MatemathicsOperator

java.lang.Object
java.lang.Enum<MatemathicsOperator>
org.gcube.informationsystem.resourceregistry.queries.operators.MatemathicsOperator
All Implemented Interfaces:
Serializable, Comparable<MatemathicsOperator>, Constable

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
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static MatemathicsOperator[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MatemathicsOperator valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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()
    • getOperator

      public static MatemathicsOperator getOperator(String key)
    • getError

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

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

      protected StringBuffer addFieldPrefix(StringBuffer sb, String fieldPrefix)
    • generateFieldToEmit

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