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