Package com.arangodb.model
Class ComputedValue
java.lang.Object
com.arangodb.model.ComputedValue
- Since:
- ArangoDB 3.10
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomputeOn
(ComputedValue.ComputeOn... computeOn) boolean
expression
(String expression) failOnWarning
(Boolean failOnWarning) getName()
int
hashCode()
-
Constructor Details
-
ComputedValue
public ComputedValue()
-
-
Method Details
-
name
- Parameters:
name
- (required) The name of the target attribute. Can only be a top-level attribute, but you may return a nested object. Cannot be _key, _id, _rev, _from, _to, or a shard key attribute.- Returns:
- this
-
expression
- Parameters:
expression
- (required) An AQL RETURN operation with an expression that computes the desired value. See Computed Value Expressions for details.- Returns:
- this
-
overwrite
- Parameters:
overwrite
- (required) Whether the computed value shall take precedence over a user-provided or existing attribute.- Returns:
- this
-
computeOn
- Parameters:
computeOn
- (optional) An array of operations to define on which write operations the value shall be computed. The default is ["insert", "update", "replace"].- Returns:
- this
-
keepNull
- Parameters:
keepNull
- (optional) Whether the target attribute shall be set if the expression evaluates to null. You can set the option to false to not set (or unset) the target attribute if the expression returns null. The default is true.- Returns:
- this
-
failOnWarning
- Parameters:
failOnWarning
- (optional) Whether to let the write operation fail if the expression produces a warning. The default is false.- Returns:
- this
-
getName
-
getExpression
-
getOverwrite
-
getComputeOn
-
getKeepNull
-
getFailOnWarning
-
equals
-
hashCode
public int hashCode()
-