Class QueryResult

java.lang.Object
com.couchbase.client.java.query.QueryResult

public class QueryResult extends Object
The result of a N1QL query, including rows and associated metadata.
Since:
3.0.0
  • Constructor Details

  • Method Details

    • rowsAsObject

      public List<JsonObject> rowsAsObject()
      Returns all rows, converted into JsonObjects.
      Throws:
      DecodingFailureException - if any row could not be successfully deserialized.
    • rowsAs

      public <T> List<T> rowsAs(Class<T> target)
      Returns all rows, converted into instances of the target class.
      Parameters:
      target - the target class to deserialize into.
      Throws:
      DecodingFailureException - if any row could not be successfully deserialized.
    • rowsAs

      public <T> List<T> rowsAs(TypeRef<T> target)
      Returns all rows, converted into instances of the target type.
      Parameters:
      target - the target type to deserialize into.
      Throws:
      DecodingFailureException - if any row could not be successfully deserialized.
    • metaData

      public QueryMetaData metaData()
      Returns the QueryMetaData giving access to the additional metadata associated with this query.