A Map that maps column name to value in a row result from a QueryResultIterator.

Provides convenience methods for converting to internal base types - String, Long, Double, and ByteArray.

session.query("SELECT name,ts,dur FROM slice WHERE name LIKE \"activityStart\"").forEach {
callback(it.string("name"), it.long("ts"), it.long("dur")
// or, used as a map:
//callback(it["name"] as String, it["ts"] as Long, it["dur"] as Long)
}

Nullable variants of each convenience method are also provided.

Summary

Public constructors

Row(map: Map<StringAny?>)
android

Public functions

ByteArray
bytes(columnName: String)
android
Double
double(columnName: String)
android
open operator Boolean
equals(other: Any?)
android
open Int
android
Long
long(columnName: String)
android
ByteArray?
nullableBytes(columnName: String)
android
Double?
nullableDouble(columnName: String)
android
Long?
nullableLong(columnName: String)
android
String?
nullableString(columnName: String)
android
String
string(columnName: String)
android
open String
android

Inherited functions

From kotlin.collections.Map
open Boolean
android
open Boolean
containsValue(value: Any?)
android
open Unit
android
open operator Any?
get(key: String)
android
open Any?
@SinceKotlin(version = "1.1")
@PlatformDependent
getOrDefault(key: String, defaultValue: Any?)
android
open Boolean
android

Inherited properties

From kotlin.collections.Map
open Set<Map.Entry<StringAny?>>
android
open Set<String>
android
open Int
android
open Collection<Any?>
android

Public constructors

Row

Row(map: Map<StringAny?>)

Public functions

bytes

fun bytes(columnName: String): ByteArray

double

fun double(columnName: String): Double

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

long

fun long(columnName: String): Long

nullableBytes

fun nullableBytes(columnName: String): ByteArray?

nullableDouble

fun nullableDouble(columnName: String): Double?

nullableLong

fun nullableLong(columnName: String): Long?

nullableString

fun nullableString(columnName: String): String?

string

fun string(columnName: String): String

toString

open fun toString(): String