NativeCursorGetBatch class
Represents a batched get operation returned from NativeCursor.batchedGet.
Cursor get operations can often be represented as batches, such as reading all values from each row. This representation allows to reduce Flutter channel bottle-necking.
This class uses a builder pattern so methods can be called one after another.
To commit the batch and get the data, call commit.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
commit(
) → Future< List< Object?> > - Commits this batch.
-
commitRange(
int start, int end) → Future< List< List< >Object?> > - Commits this batch and applies it for a range of cursor rows.
-
getBytes(
int columnIndex) → NativeCursorGetBatch -
Will return Uint8List or
null
. https://developer.android.com/reference/kotlin/android/database/Cursor#getblob -
getColumnCount(
) → NativeCursorGetBatch - Will return int. https://developer.android.com/reference/kotlin/android/database/Cursor#getcount
-
getColumnIndex(
String columnName) → NativeCursorGetBatch - Will return int. https://developer.android.com/reference/kotlin/android/database/Cursor#getcolumnindex
-
getColumnIndexOrThrow(
String columnName) → NativeCursorGetBatch - Will return int. https://developer.android.com/reference/kotlin/android/database/Cursor#getcolumnindexorthrow
-
getColumnName(
int columnIndex) → NativeCursorGetBatch - Will return String. https://developer.android.com/reference/kotlin/android/database/Cursor#getcolumnname
-
getColumnNames(
) → NativeCursorGetBatch -
Will return
List<String>
. https://developer.android.com/reference/kotlin/android/database/Cursor#getcolumnnames -
getCount(
) → NativeCursorGetBatch - Will return int. https://developer.android.com/reference/kotlin/android/database/Cursor#getcount
-
getDouble(
int columnIndex) → NativeCursorGetBatch -
Will return double or
0.0
, when the column value `null. https://developer.android.com/reference/kotlin/android/database/Cursor#getdouble -
getFloat(
int columnIndex) → NativeCursorGetBatch -
Will return double or
0.0
, when the column value `null. https://developer.android.com/reference/kotlin/android/database/Cursor#getfloat -
getInt(
int columnIndex) → NativeCursorGetBatch -
Will return int or
0
, when the column value `null. https://developer.android.com/reference/kotlin/android/database/Cursor#getint -
getLong(
int columnIndex) → NativeCursorGetBatch -
Will return int or
0
, when the column value `null. https://developer.android.com/reference/kotlin/android/database/Cursor#getlong -
getPosition(
) → NativeCursorGetBatch - Will return int. https://developer.android.com/reference/kotlin/android/database/Cursor#getposition
-
getShort(
int columnIndex) → NativeCursorGetBatch -
Will return int or
0
, when the column valuenull
. https://developer.android.com/reference/kotlin/android/database/Cursor#getshort -
getString(
int columnIndex) → NativeCursorGetBatch -
Will return String or
null
. https://developer.android.com/reference/kotlin/android/database/Cursor#getstring -
getType(
int columnIndex) → NativeCursorGetBatch - Will return a Type that is one of the types listed in NativeCursor.supportedFieldTypes. https://developer.android.com/reference/kotlin/android/database/Cursor#gettype
-
isAfterLast(
) → NativeCursorGetBatch - Will return bool. https://developer.android.com/reference/kotlin/android/database/Cursor#isafterlast
-
isBeforeFirst(
) → NativeCursorGetBatch - Will return bool. https://developer.android.com/reference/kotlin/android/database/Cursor#isbeforefirst
-
isFirst(
) → NativeCursorGetBatch - Will return bool. https://developer.android.com/reference/kotlin/android/database/Cursor#isfirst
-
isLast(
) → NativeCursorGetBatch - Will return bool. https://developer.android.com/reference/kotlin/android/database/Cursor#islast
-
isNull(
int columnIndex) → NativeCursorGetBatch - Will return Bool. https://developer.android.com/reference/kotlin/android/database/Cursor#isnull
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited