Package com.couchbase.client.java.query
Class QueryRow
java.lang.Object
com.couchbase.client.java.query.QueryRow
One row of a SQL++ query result.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
bytes()
Returns the raw content of the row, exactly as it was received from the server.<T> T
Returns the content of the row deserialized as an instance of the specified type, or null if the row content is a literal null.<T> T
Returns the content of the row deserialized as an instance of the specified type, or null if the row's content is a literal null.Returns the content of the row deserialized as aJsonObject
, or null if the row content is a literal null.toString()
-
Constructor Details
-
Method Details
-
bytes
public byte[] bytes()Returns the raw content of the row, exactly as it was received from the server.This method returns the same array each time it is called.
-
contentAsObject
Returns the content of the row deserialized as aJsonObject
, or null if the row content is a literal null.- Throws:
DecodingFailureException
- if the row could not be deserialized into an instance of the specified type.
-
contentAs
Returns the content of the row deserialized as an instance of the specified type, or null if the row's content is a literal null.- Throws:
DecodingFailureException
- if the row could not be deserialized into an instance of the specified type.
-
contentAs
Returns the content of the row deserialized as an instance of the specified type, or null if the row content is a literal null.- Throws:
DecodingFailureException
- if the row could not be deserialized into an instance of the specified type.
-
toString
-