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 Expression objectLength​(JsonObject value)
    Returned expression results in the number of name-value pairs in the object.
    static Expression objectLength​(Expression expression)
    Returned expression results in the number of name-value pairs in the object.
    static Expression objectLength​(String expression)
    Returned expression results in the number of name-value pairs in the object.
    static Expression objectNames​(JsonObject value)
    Returned expression results in an array containing the attribute names of the object, in N1QL collation order.
    static Expression objectNames​(Expression expression)
    Returned expression results in an array containing the attribute names of the object, in N1QL collation order.
    static Expression objectNames​(String expression)
    Returned expression results in an array containing the attribute names of the object, in N1QL collation order.
    static Expression objectPairs​(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 Expression objectPairs​(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 Expression objectPairs​(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 Expression objectValues​(JsonObject value)
    Returned expression results in an array containing the attribute values of the object, in N1QL collation order of the corresponding names.
    static Expression objectValues​(Expression expression)
    Returned expression results in an array containing the attribute values of the object, in N1QL collation order of the corresponding names.
    static Expression objectValues​(String expression)
    Returned expression results in an array containing the attribute values of the object, in N1QL collation order of the corresponding names.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • objectLength

      public static Expression objectLength​(Expression expression)
      Returned expression results in the number of name-value pairs in the object.
    • objectLength

      public static Expression objectLength​(String expression)
      Returned expression results in the number of name-value pairs in the object.
    • objectLength

      public static Expression objectLength​(JsonObject value)
      Returned expression results in the number of name-value pairs in the object.
    • objectNames

      public static Expression objectNames​(Expression expression)
      Returned expression results in an array containing the attribute names of the object, in N1QL collation order.
    • objectNames

      public static Expression objectNames​(String expression)
      Returned expression results in an array containing the attribute names of the object, in N1QL collation order.
    • objectNames

      public static Expression objectNames​(JsonObject value)
      Returned expression results in an array containing the attribute names of the object, in N1QL collation order.
    • objectPairs

      public static Expression objectPairs​(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.
    • objectPairs

      public static Expression objectPairs​(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.
    • objectPairs

      public static Expression objectPairs​(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.
    • objectValues

      public static Expression objectValues​(Expression expression)
      Returned expression results in an array containing the attribute values of the object, in N1QL collation order of the corresponding names.
    • objectValues

      public static Expression objectValues​(String expression)
      Returned expression results in an array containing the attribute values of the object, in N1QL collation order of the corresponding names.
    • objectValues

      public static Expression objectValues​(JsonObject value)
      Returned expression results in an array containing the attribute values of the object, in N1QL collation order of the corresponding names.