@ExperimentalPerfettoTraceProcessorApi
public final class Row implements 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

Public methods

final @NonNull byte[]
bytes(@NonNull String columnName)
final double
double(@NonNull String columnName)
boolean
equals(Object other)
int
final long
long(@NonNull String columnName)
final byte[]
final Double
final Long
final String
final @NonNull String
string(@NonNull String columnName)
@NonNull String

Public constructors

Row

public Row(@NonNull Map<@NonNull StringObject> map)

Public methods

bytes

Added in 1.2.0
public final @NonNull byte[] bytes(@NonNull String columnName)

double

Added in 1.2.0
public final double double(@NonNull String columnName)

equals

public boolean equals(Object other)

hashCode

public int hashCode()

long

Added in 1.2.0
public final long long(@NonNull String columnName)

nullableBytes

Added in 1.2.0
public final byte[] nullableBytes(@NonNull String columnName)

nullableDouble

Added in 1.2.0
public final Double nullableDouble(@NonNull String columnName)

nullableLong

Added in 1.2.0
public final Long nullableLong(@NonNull String columnName)

nullableString

Added in 1.2.0
public final String nullableString(@NonNull String columnName)

string

Added in 1.2.0
public final @NonNull String string(@NonNull String columnName)

toString

public @NonNull String toString()