Result

expect class Result : Iterable<String> (source)

Result represents a row of result set returned by a Query.

actual class Result : DelegatedClass<<Error class: unknown class>> , Iterable<String> (source)
actual class Result : Iterable<String> (source)

Properties

Link copied to clipboard
expect val count: Int

The number of the values in the result.

actual val count: Int
actual val count: Int
Link copied to clipboard
expect val keys: List<String>

A list of keys

actual val keys: List<String>
actual val keys: List<String>

Functions

Link copied to clipboard
expect operator fun contains(key: String): Boolean

Tests whether a projecting result key exists or not.

actual operator fun contains(key: String): Boolean
actual operator fun contains(key: String): Boolean
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
operator fun Result.get(index: Int): Fragment

Subscript access to a Fragment object of the projecting result value at the given index.

operator fun Result.get(key: String): Fragment

Subscript access to a Fragment object of the projecting result value for the given key.

Link copied to clipboard
expect fun getArray(index: Int): Array?

The result at the given index as an Array

expect fun getArray(key: String): Array?

The projecting result value for the given key as a readonly Array object. Returns null if the key doesn't exist.

actual fun getArray(index: Int): Array?
actual fun getArray(key: String): Array?
actual fun getArray(index: Int): Array?
actual fun getArray(key: String): Array?
Link copied to clipboard
expect fun getBlob(index: Int): Blob?

The result at the given index as a Blob

expect fun getBlob(key: String): Blob?

The projecting result value for the given key as a Blob object. Returns null if the key doesn't exist.

actual fun getBlob(index: Int): Blob?
actual fun getBlob(key: String): Blob?
actual fun getBlob(index: Int): Blob?
actual fun getBlob(key: String): Blob?
Link copied to clipboard
expect fun getBoolean(index: Int): Boolean

The result at the given index as a boolean

expect fun getBoolean(key: String): Boolean

The projecting result value for the given key as a boolean value. Returns false if the key doesn't exist.

actual fun getBoolean(index: Int): Boolean
actual fun getBoolean(key: String): Boolean
actual fun getBoolean(index: Int): Boolean
actual fun getBoolean(key: String): Boolean
Link copied to clipboard
expect fun getDate(index: Int): Instant?

The result at the given index as a Date

expect fun getDate(key: String): Instant?

The projecting result value for the given key as a Date object. Returns null if the key doesn't exist.

actual fun getDate(index: Int): Instant?
actual fun getDate(key: String): Instant?
actual fun getDate(index: Int): Instant?
actual fun getDate(key: String): Instant?
Link copied to clipboard
expect fun getDictionary(index: Int): Dictionary?

The result at the given index as a Dictionary

expect fun getDictionary(key: String): Dictionary?

The projecting result value for the given key as a readonly Dictionary object. Returns null if the key doesn't exist.

actual fun getDictionary(index: Int): Dictionary?
actual fun getDictionary(key: String): Dictionary?
actual fun getDictionary(index: Int): Dictionary?
actual fun getDictionary(key: String): Dictionary?
Link copied to clipboard
expect fun getDouble(index: Int): Double

The result at the given index as a double

expect fun getDouble(key: String): Double

The projecting result value for the given key as a double value. Returns 0.0 if the key doesn't exist.

actual fun getDouble(index: Int): Double
actual fun getDouble(key: String): Double
actual fun getDouble(index: Int): Double
actual fun getDouble(key: String): Double
Link copied to clipboard
expect fun getFloat(index: Int): Float

The result at the given index as a float

expect fun getFloat(key: String): Float

The projecting result value for the given key as a float value. Returns 0.0f if the key doesn't exist.

actual fun getFloat(index: Int): Float
actual fun getFloat(key: String): Float
actual fun getFloat(index: Int): Float
actual fun getFloat(key: String): Float
Link copied to clipboard
expect fun getInt(index: Int): Int

The result at the given index as an int

expect fun getInt(key: String): Int

The projecting result value for the given key as an integer value Returns 0 if the key doesn't exist.

actual fun getInt(index: Int): Int
actual fun getInt(key: String): Int
actual fun getInt(index: Int): Int
actual fun getInt(key: String): Int
Link copied to clipboard
expect fun getLong(index: Int): Long

The result at the given index as a long

expect fun getLong(key: String): Long

The projecting result value for the given key as a long value Returns 0L if the key doesn't exist.

actual fun getLong(index: Int): Long
actual fun getLong(key: String): Long
actual fun getLong(index: Int): Long
actual fun getLong(key: String): Long
Link copied to clipboard
expect fun getNumber(index: Int): Number?

The result at the given index as a Number

expect fun getNumber(key: String): Number?

The projecting result value for the given key as a Number object Returns null if the key doesn't exist.

actual fun getNumber(index: Int): Number?
actual fun getNumber(key: String): Number?
actual fun getNumber(index: Int): Number?
actual fun getNumber(key: String): Number?
Link copied to clipboard
expect fun getString(index: Int): String?

The result at the given index as a String

expect fun getString(key: String): String?

The result value for the given key as a String object Returns null if the key doesn't exist.

actual fun getString(index: Int): String?
actual fun getString(key: String): String?
actual fun getString(index: Int): String?
actual fun getString(key: String): String?
Link copied to clipboard
expect fun getValue(index: Int): Any?

The result value at the given index.

expect fun getValue(key: String): Any?

The result value for the given key as an Object Returns null if the key doesn't exist.

actual fun getValue(index: Int): Any?
actual fun getValue(key: String): Any?
actual fun getValue(index: Int): Any?
actual fun getValue(key: String): Any?
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
expect open operator override fun iterator(): Iterator<String>

Gets an iterator over the projecting result keys.

actual open operator override fun iterator(): Iterator<String>
actual open operator override fun iterator(): Iterator<String>
Link copied to clipboard
expect fun toJSON(): String
actual fun toJSON(): String
actual fun toJSON(): String
Link copied to clipboard
expect fun toList(): List<Any?>

Gets all values as a List. The types of the values contained in the returned List are Array, Blob, Dictionary, Number types, String, and null.

actual fun toList(): List<Any?>
actual fun toList(): List<Any?>
Link copied to clipboard
expect fun toMap(): Map<String, Any?>

Gets all values as a Dictionary. The value types of the values contained in the returned Dictionary object are Array, Blob, Dictionary, Number types, String, and null.

actual fun toMap(): Map<String, Any?>
actual fun toMap(): Map<String, Any?>
Link copied to clipboard
open override fun toString(): String