Result
Result represents a row of result set returned by a Query.
A Result may be referenced only while the ResultSet that contains it is open. An attempt to reference a Result after calling ResultSet.close on the ResultSet that contains it will throw a CouchbaseLiteError
Functions
Tests whether a property exists or not. This can be less expensive than getValue(String), because it does not have to allocate an Object for the property value.
Subscript access to a Fragment object of the projecting result value at the given index.
Subscript access to a Fragment object of the projecting result value for the given key.
The result at the given index interpreted as an Array. Returns null if the value cannot be so interpreted.
The result value for the given key as a Array Returns null if the key doesn't exist or if the value is not an Array
Gets value at the given index as an Array. Returns null if the value doesn't exist, or its value is not an Array.
Get a property's value as an Array. Returns null if the property doesn't exist, or its value is not an array.
The result at the given index interpreted as a Blob. Returns null if the value cannot be so interpreted.
The result value for the given key as a Blob Returns null if the key doesn't exist or if the value is not a Blob
Gets value at the given index as a Blob. Returns null if the value doesn't exist, or its value is not a Blob.
Gets a property's value as a Blob. Returns null if the value doesn't exist, or its value is not a Blob.
The result at the given index interpreted as a boolean. Returns false if the value cannot be so interpreted.
The result value for the given key as a boolean Returns false if the key doesn't exist or if the value is not a boolean
Gets value at the given index as a boolean.
Gets a property's value as a boolean. Returns true if the value exists, and is either true or a nonzero number.
The result at the given index interpreted as an Instant date. Returns null if the value cannot be so interpreted.
The result value for the given key as an Instant date Returns null if the key doesn't exist or if the value is not a date
Gets value at the given index as a Date. JSON does not directly support dates, so the actual property value must be a string, which is then parsed according to the ISO-8601 date format (the default used in JSON.) Returns null if the value doesn't exist, is not a string, or is not parsable as a date. NOTE: This is not a generic date parser! It only recognizes the ISO-8601 format, with or without milliseconds.
Gets a property's value as an Instant date. JSON does not directly support dates, so the actual property value must be a string, which is then parsed according to the ISO-8601 date format (the default used in JSON.) Returns null if the value doesn't exist, is not a string, or is not parsable as a date. NOTE: This is not a generic date parser! It only recognizes the ISO-8601 format, with or without milliseconds.
The result at the given index interpreted as a Dictionary. Returns null if the value cannot be so interpreted.
The result value for the given key as a Dictionary Returns null if the key doesn't exist or if the value is not a Dictionary
Gets a Dictionary at the given index. Return null if the value is not a dictionary.
Get a property's value as a Dictionary. Returns null if the property doesn't exist, or its value is not a dictionary.
The result at the given index interpreted as a double. Returns 0.0 if the value cannot be so interpreted.
The result value for the given key as a double Returns 0.0 if the key doesn't exist or if the value is not a double
Gets value at the given index as a double. Integers will be converted to double. The value true is returned as 1.0, false as 0.0. Returns 0.0 if the property doesn't exist or does not have a numeric value.
Gets a property's value as a double. Integers will be converted to double. The value true is returned as 1.0, false as 0.0. Returns 0.0 if the property doesn't exist or does not have a numeric value.
The result at the given index interpreted as a float. Returns 0.0F if the value cannot be so interpreted.
The result value for the given key as a float Returns 0.0F if the key doesn't exist or if the value is not a float
Gets value at the given index as a float. Integers will be converted to float. The value true is returned as 1.0, false as 0.0. Returns 0.0 if the value doesn't exist or does not have a numeric value.
Gets a property's value as a float. Integers will be converted to float. The value true is returned as 1.0, false as 0.0. Returns 0.0 if the value doesn't exist or does not have a numeric value.
The result at the given index interpreted as and an int. Returns 0 if the value cannot be so interpreted.
The result value for the given key as an int Returns 0 if the key doesn't exist or if the value is not a int
Gets value at the given index as an int. Floating point values will be rounded. The value true is returned as 1, false as 0. Returns 0 if the value doesn't exist or does not have a numeric value.
Gets a property's value as an int. Floating point values will be rounded. The value true is returned as 1, false as 0. Returns 0 if the value doesn't exist or does not have a numeric value.
The result at the given index interpreted as a long. Returns 0 if the value cannot be so interpreted.
The result value for the given key as a long Returns 0L if the key doesn't exist or if the value is not a long
Gets value at the given index as a long. Floating point values will be rounded. The value true is returned as 1, false as 0. Returns 0 if the value doesn't exist or does not have a numeric value.
Gets a property's value as a long. Floating point values will be rounded. The value true is returned as 1, false as 0. Returns 0 if the value doesn't exist or does not have a numeric value.
The result at the given index interpreted as a Number. Returns null if the value cannot be so interpreted.
The result value for the given key as a Number Returns null if the key doesn't exist or if the value is not a Number
Gets value at the given index as a Number. Returns null if the value doesn't exist, or its value is not a Number.
Gets a property's value as a Number. Returns null if the value doesn't exist, or its value is not a Number.
The result at the given index converted to a String
The result value for the given key as a String Returns null if the key doesn't exist.
Gets value at the given index as a String. Returns null if the value doesn't exist, or its value is not a String.
Gets a property's value as a String. Returns null if the value doesn't exist, or its value is not a String.
The result value at the given index.
The result value for the given key as an Object Returns null if the key doesn't exist.
Gets value at the given index as an object. The object types are Blob, Array, Dictionary, Number, or String based on the underlying data type; or null if the value is null.
Gets a property's value as an object. The object types are Blob, Array, Dictionary, Number, or String based on the underlying data type; or null if the property value is null or the property doesn't exist.
Gets all the values as a List. The types of the values contained in the returned List are Array, Blob, Dictionary, Number types, String, and null.
Gets content of the current object as a List. The values contained in the returned List object are all JSON based values.
Gets all values as a Map. The keys in the returned map are the names of columns that have values. The types of the values are Array, Blob, Dictionary, Number types, String, and null.
Gets content of the current object as a Map. The values contained in the returned Map object are all JSON based values.