Enum Class MatemathicsOperator
java.lang.Object
java.lang.Enum<MatemathicsOperator>
org.gcube.informationsystem.resourceregistry.queries.operators.MatemathicsOperator
- All Implemented Interfaces:
Serializable,Comparable<MatemathicsOperator>,Constable
- 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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected StringBufferaddFieldPrefix(StringBuffer sb, String fieldPrefix) generateFieldToEmit(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode, String fieldPrefix) protected StringBuffergenerateFieldToEmit(org.gcube.com.fasterxml.jackson.databind.node.ArrayNode arrayNode, String fieldsSeparator, String fieldPrefix) protected Stringprotected Stringstatic MatemathicsOperatorgetOperator(String key) protected Stringstatic MatemathicsOperatorReturns the enum constant of this class with the specified name.static MatemathicsOperator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUM
-
MINUS
-
MULTIPLY
-
DIVIDE
-
MODULE
-
BITWISE_RIGHT_SHIFT
-
BITWISE_LEFT_SHIFT
-
BITWISE_AND
-
BITWISE_OR
-
BITWISE_XOR
-
ARRAY_CONCATENATION
-
-
Field Details
-
logger
protected static org.slf4j.Logger logger -
VALUES_KEY
- See Also:
-
SEPARATOR_KEY
- See Also:
-
AS_KEY
- See Also:
-
operatorKey
-
dbOperator
-
description
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getOperatorKey
-
getDbOperator
-
getDescription
-
getOperators
-
getOperator
-
getError
-
generateFieldToEmit
-
addFieldPrefix
-
generateFieldToEmit
protected StringBuffer generateFieldToEmit(org.gcube.com.fasterxml.jackson.databind.node.ArrayNode arrayNode, String fieldsSeparator, String fieldPrefix)
-