@ExperimentalPerfettoTraceProcessorApi
class Row : Map


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

Public functions

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

Inherited functions

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

Inherited properties

From kotlin.collections.Map

Public constructors

Row

Row(map: Map<StringAny?>)

Public functions

bytes

Added in 1.2.0
fun bytes(columnName: String): ByteArray

double

Added in 1.2.0
fun double(columnName: String): Double

equals

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

hashCode

open fun hashCode(): Int

long

Added in 1.2.0
fun long(columnName: String): Long

nullableBytes

Added in 1.2.0
fun nullableBytes(columnName: String): ByteArray?

nullableDouble

Added in 1.2.0
fun nullableDouble(columnName: String): Double?

nullableLong

Added in 1.2.0
fun nullableLong(columnName: String): Long?

nullableString

Added in 1.2.0
fun nullableString(columnName: String): String?

string

Added in 1.2.0
fun string(columnName: String): String

toString

open fun toString(): String