Class ObjectFunctions
java.lang.Object
com.couchbase.client.java.query.dsl.functions.ObjectFunctions
@Experimental @Public public class ObjectFunctions extends Object
DSL for N1QL functions in the Object category.
- Since:
- 2.2
- Author:
- Simon Baslé
-
Method Summary
Modifier and Type Method Description static ExpressionobjectLength(JsonObject value)Returned expression results in the number of name-value pairs in the object.static ExpressionobjectLength(Expression expression)Returned expression results in the number of name-value pairs in the object.static ExpressionobjectLength(String expression)Returned expression results in the number of name-value pairs in the object.static ExpressionobjectNames(JsonObject value)Returned expression results in an array containing the attribute names of the object, in N1QL collation order.static ExpressionobjectNames(Expression expression)Returned expression results in an array containing the attribute names of the object, in N1QL collation order.static ExpressionobjectNames(String expression)Returned expression results in an array containing the attribute names of the object, in N1QL collation order.static ExpressionobjectPairs(JsonObject value)Returned expression results in an array containing the attribute name and value pairs of the object, in N1QL collation order of the names.static ExpressionobjectPairs(Expression expression)Returned expression results in an array containing the attribute name and value pairs of the object, in N1QL collation order of the names.static ExpressionobjectPairs(String expression)Returned expression results in an array containing the attribute name and value pairs of the object, in N1QL collation order of the names.static ExpressionobjectValues(JsonObject value)Returned expression results in an array containing the attribute values of the object, in N1QL collation order of the corresponding names.static ExpressionobjectValues(Expression expression)Returned expression results in an array containing the attribute values of the object, in N1QL collation order of the corresponding names.static ExpressionobjectValues(String expression)Returned expression results in an array containing the attribute values of the object, in N1QL collation order of the corresponding names.
-
Method Details
-
objectLength
Returned expression results in the number of name-value pairs in the object. -
objectLength
Returned expression results in the number of name-value pairs in the object. -
objectLength
Returned expression results in the number of name-value pairs in the object. -
objectNames
Returned expression results in an array containing the attribute names of the object, in N1QL collation order. -
objectNames
Returned expression results in an array containing the attribute names of the object, in N1QL collation order. -
objectNames
Returned expression results in an array containing the attribute names of the object, in N1QL collation order. -
objectPairs
Returned expression results in an array containing the attribute name and value pairs of the object, in N1QL collation order of the names. -
objectPairs
Returned expression results in an array containing the attribute name and value pairs of the object, in N1QL collation order of the names. -
objectPairs
Returned expression results in an array containing the attribute name and value pairs of the object, in N1QL collation order of the names. -
objectValues
Returned expression results in an array containing the attribute values of the object, in N1QL collation order of the corresponding names. -
objectValues
Returned expression results in an array containing the attribute values of the object, in N1QL collation order of the corresponding names. -
objectValues
Returned expression results in an array containing the attribute values of the object, in N1QL collation order of the corresponding names.
-