Package mil.nga.geopackage.features.user
Class FeaturePaginatedResults
- java.lang.Object
-
- mil.nga.geopackage.user.UserCorePaginatedResults<TColumn,TTable,TRow,TResult>
-
- mil.nga.geopackage.user.UserPaginatedResults<FeatureColumn,FeatureTable,FeatureRow,FeatureResultSet>
-
- mil.nga.geopackage.features.user.FeaturePaginatedResults
-
- All Implemented Interfaces:
Iterable<FeatureRow>
public class FeaturePaginatedResults extends UserPaginatedResults<FeatureColumn,FeatureTable,FeatureRow,FeatureResultSet>
Feature Paginated Results for iterating and querying through features in chunks- Since:
- 6.2.0
- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description FeaturePaginatedResults(FeatureDao dao, FeatureResultSet results)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FeaturePaginatedResults
create(FeatureDao dao, FeatureResultSet results)
Create paginated resultsFeatureDao
getDao()
static Pagination
getPagination(FeatureResultSet resultSet)
Get the pagination offset and limitFeatureResultSet
getResults()
static boolean
isPaginated(FeatureResultSet 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
-
FeaturePaginatedResults
public FeaturePaginatedResults(FeatureDao dao, FeatureResultSet results)
Constructor- Parameters:
dao
- feature daoresults
- feature result set
-
-
Method Detail
-
isPaginated
public static boolean isPaginated(FeatureResultSet resultSet)
Determine if the result set is paginated- Parameters:
resultSet
- feature result set- Returns:
- true if paginated
-
getPagination
public static Pagination getPagination(FeatureResultSet resultSet)
Get the pagination offset and limit- Parameters:
resultSet
- feature result set- Returns:
- pagination or null if not paginated
-
create
public static FeaturePaginatedResults create(FeatureDao dao, FeatureResultSet results)
Create paginated results- Parameters:
dao
- feature daoresults
- feature result set- Returns:
- feature paginated results
-
getDao
public FeatureDao getDao()
- Overrides:
getDao
in classUserPaginatedResults<FeatureColumn,FeatureTable,FeatureRow,FeatureResultSet>
-
getResults
public FeatureResultSet getResults()
- Overrides:
getResults
in classUserPaginatedResults<FeatureColumn,FeatureTable,FeatureRow,FeatureResultSet>
-
-