Package mil.nga.geopackage.tiles.user
Class TilePaginatedResults
- java.lang.Object
-
- mil.nga.geopackage.user.UserCorePaginatedResults<TColumn,TTable,TRow,TResult>
-
- mil.nga.geopackage.user.UserPaginatedResults<TileColumn,TileTable,TileRow,TileResultSet>
-
- mil.nga.geopackage.tiles.user.TilePaginatedResults
-
public class TilePaginatedResults extends UserPaginatedResults<TileColumn,TileTable,TileRow,TileResultSet>
Tile Paginated Results for iterating and querying through tiles in chunks- Since:
- 6.2.0
- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description TilePaginatedResults(TileDao dao, TileResultSet results)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TilePaginatedResults
create(TileDao dao, TileResultSet results)
Create paginated resultsTileDao
getDao()
static Pagination
getPagination(TileResultSet resultSet)
Get the pagination offset and limitTileResultSet
getResults()
static boolean
isPaginated(TileResultSet resultSet)
Determine if the result set is paginated-
Methods inherited from class mil.nga.geopackage.user.UserCorePaginatedResults
close, getArgs, getColumns, getPagination, getSql, ids, 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
-
TilePaginatedResults
public TilePaginatedResults(TileDao dao, TileResultSet results)
Constructor- Parameters:
dao
- tile daoresults
- tile result set
-
-
Method Detail
-
isPaginated
public static boolean isPaginated(TileResultSet resultSet)
Determine if the result set is paginated- Parameters:
resultSet
- tile result set- Returns:
- true if paginated
-
getPagination
public static Pagination getPagination(TileResultSet resultSet)
Get the pagination offset and limit- Parameters:
resultSet
- tile result set- Returns:
- pagination or null if not paginated
-
create
public static TilePaginatedResults create(TileDao dao, TileResultSet results)
Create paginated results- Parameters:
dao
- tile daoresults
- tile result set- Returns:
- tile paginated results
-
getDao
public TileDao getDao()
- Overrides:
getDao
in classUserPaginatedResults<TileColumn,TileTable,TileRow,TileResultSet>
-
getResults
public TileResultSet getResults()
- Overrides:
getResults
in classUserPaginatedResults<TileColumn,TileTable,TileRow,TileResultSet>
-
-