getLong

abstract fun getLong(@IntRange(from = 0) index: Int): Long

Returns the value of the requested column at the given zero-based index as a Long.

If the column value is NULL, the result is 0L. To distinguish between a NULL value and a stored 0L, use the isNull method.

Return

The value of the column as a Long.

Parameters

index

The zero-based index of the column.

See also

Throws

if the index is out of bounds or the column is not an integer type.