Package mil.nga.geopackage.tiles.user
Class TileCursor
java.lang.Object
android.database.CursorWrapper
mil.nga.geopackage.db.CursorResult
mil.nga.geopackage.user.UserCursor<TileColumn,TileTable,TileRow>
mil.nga.geopackage.tiles.user.TileCursor
- All Implemented Interfaces:
Cursor
,Closeable
,AutoCloseable
,Iterable<TileRow>
,Result
,UserCoreResult<TileColumn,
TileTable, TileRow>
Tile Cursor to wrap a database cursor for tile queries
-
Field Summary
Fields inherited from interface android.database.Cursor
FIELD_TYPE_BLOB, FIELD_TYPE_FLOAT, FIELD_TYPE_INTEGER, FIELD_TYPE_NULL, FIELD_TYPE_STRING
-
Constructor Summary
ConstructorDescriptionTileCursor
(TileTable table, Cursor cursor) ConstructorTileCursor
(TileTable table, String[] columns, Cursor cursor) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected UserInvalidCursor<TileColumn,
TileTable, TileRow, ? extends UserCursor<TileColumn, TileTable, TileRow>, ? extends UserDao<TileColumn, TileTable, TileRow, ? extends UserCursor<TileColumn, TileTable, TileRow>>> createInvalidCursor
(UserDao dao, UserCursor cursor, List<Integer> invalidPositions, List<TileColumn> blobColumns) Create an invalid cursorvoid
Enable requery attempt of invalid rows after iterating through original query rows.Methods inherited from class mil.nga.geopackage.user.UserCursor
close, enableInvalidRequery, getCount, getId, getInvalidPositions, getQuery, getRow, getSelectionArgs, getSql, getTable, getTableName, getValue, getValue, getValue, getValue, hasInvalidPositions, ids, isUseBindings, iterator, moveToNext, readBlobValue, setColumns, setQuery, setTable, setUseBindings
Methods inherited from class mil.nga.geopackage.db.CursorResult
wasNull
Methods inherited from class android.database.CursorWrapper
copyStringToBuffer, deactivate, getBlob, getColumnCount, getColumnIndex, getColumnIndexOrThrow, getColumnName, getColumnNames, getDouble, getExtras, getFloat, getInt, getLong, getNotificationUri, getNotificationUris, getPosition, getShort, getString, getType, getWantsAllOnMoveCalls, getWrappedCursor, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, isNull, move, moveToFirst, moveToLast, moveToPosition, moveToPrevious, registerContentObserver, registerDataSetObserver, requery, respond, setExtras, setNotificationUri, setNotificationUris, unregisterContentObserver, unregisterDataSetObserver
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface mil.nga.geopackage.db.Result
getBlob, getColumnCount, getColumnIndex, getDouble, getFloat, getInt, getLong, getPosition, getShort, getString, getType, moveToFirst, moveToPosition, wasNull
-
Constructor Details
-
TileCursor
Constructor- Parameters:
table
- tile tablecursor
- cursor
-
TileCursor
Constructor- Parameters:
table
- tile tablecolumns
- columnscursor
- cursor- Since:
- 3.5.0
-
-
Method Details
-
getRow
-
getColumns
- Specified by:
getColumns
in interfaceUserCoreResult<TileColumn,
TileTable, TileRow> - Overrides:
getColumns
in classUserCursor<TileColumn,
TileTable, TileRow>
-
enableInvalidRequery
Enable requery attempt of invalid rows after iterating through original query rows. Only supported forUserCursor.moveToNext()
andUserCursor.getRow()
usage.- Parameters:
dao
- data access object used to perform requery- Since:
- 2.0.0
-
createInvalidCursor
protected UserInvalidCursor<TileColumn,TileTable, createInvalidCursorTileRow, ? extends UserCursor<TileColumn, TileTable, TileRow>, ? extends UserDao<TileColumn, TileTable, TileRow, ? extends UserCursor<TileColumn, TileTable, TileRow>>> (UserDao dao, UserCursor cursor, List<Integer> invalidPositions, List<TileColumn> blobColumns) Create an invalid cursor- Specified by:
createInvalidCursor
in classUserCursor<TileColumn,
TileTable, TileRow> - Parameters:
dao
- data access objectcursor
- user cursorinvalidPositions
- invalid positionsblobColumns
- blob columns- Returns:
- invalid cursor
-