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?>)
Cmn

Public functions

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

Inherited functions

From kotlin.collections.Map
open Boolean
Cmn
open Boolean
containsValue(value: Any?)
Cmn
open operator Any?
get(key: String)
Cmn
open Boolean
Cmn

Inherited properties

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

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