Package mil.nga.geopackage.tiles.user
Class TilePaginatedCursor
- java.lang.Object
-
- mil.nga.geopackage.user.UserCorePaginatedResults<TColumn,TTable,TRow,TResult>
-
- mil.nga.geopackage.user.UserPaginatedCursor<TileColumn,TileTable,TileRow,TileCursor>
-
- mil.nga.geopackage.tiles.user.TilePaginatedCursor
-
public class TilePaginatedCursor extends UserPaginatedCursor<TileColumn,TileTable,TileRow,TileCursor>
Tile Paginated Cursor for iterating and querying through tiles in chunks- Since:
- 6.2.0
-
-
Constructor Summary
Constructors Constructor Description TilePaginatedCursor(TileDao dao, TileCursor cursor)Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TilePaginatedCursorcreate(TileDao dao, TileCursor cursor)Create a paginated cursorTileCursorgetCursor()Get the current paginated cursorTileDaogetDao()static PaginationgetPagination(TileCursor cursor)Get the pagination offset and limitTileCursorgetResults()static booleanisPaginated(TileCursor cursor)Determine if the cursor is paginated-
Methods inherited from class mil.nga.geopackage.user.UserCorePaginatedResults
close, getArgs, getColumns, getPagination, getSql, iterator, setPagination
-
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
-
-
-
-
Constructor Detail
-
TilePaginatedCursor
public TilePaginatedCursor(TileDao dao, TileCursor cursor)
Constructor- Parameters:
dao- tile daocursor- tile cursor
-
-
Method Detail
-
isPaginated
public static boolean isPaginated(TileCursor cursor)
Determine if the cursor is paginated- Parameters:
cursor- tile cursor- Returns:
- true if paginated
-
getPagination
public static Pagination getPagination(TileCursor cursor)
Get the pagination offset and limit- Parameters:
cursor- tile cursor- Returns:
- pagination or null if not paginated
-
create
public static TilePaginatedCursor create(TileDao dao, TileCursor cursor)
Create a paginated cursor- Parameters:
dao- tile daocursor- tile cursor- Returns:
- tile paginated cursor
-
getDao
public TileDao getDao()
- Overrides:
getDaoin classUserPaginatedCursor<TileColumn,TileTable,TileRow,TileCursor>
-
getResults
public TileCursor getResults()
- Overrides:
getResultsin classUserPaginatedCursor<TileColumn,TileTable,TileRow,TileCursor>
-
getCursor
public TileCursor getCursor()
Get the current paginated cursor- Overrides:
getCursorin classUserPaginatedCursor<TileColumn,TileTable,TileRow,TileCursor>- Returns:
- current cursor
-
-