Package mil.nga.geopackage.features.user
Class FeaturePaginatedCursor
java.lang.Object
mil.nga.geopackage.user.UserCorePaginatedResults<FeatureColumn,FeatureTable,FeatureRow,FeatureCursor>
mil.nga.geopackage.user.UserPaginatedCursor<FeatureColumn,FeatureTable,FeatureRow,FeatureCursor>
mil.nga.geopackage.features.user.FeaturePaginatedCursor
- All Implemented Interfaces:
Iterable<FeatureRow>
public class FeaturePaginatedCursor
extends UserPaginatedCursor<FeatureColumn,FeatureTable,FeatureRow,FeatureCursor>
Feature Paginated Cursor for iterating and querying through features in
chunks
- Since:
- 6.2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FeaturePaginatedCursorcreate(FeatureDao dao, FeatureCursor cursor) Create a paginated cursorGet the current paginated cursorgetDao()static PaginationgetPagination(FeatureCursor cursor) Get the pagination offset and limitstatic booleanisPaginated(FeatureCursor cursor) Determine if the cursor is paginatedMethods inherited from class mil.nga.geopackage.user.UserCorePaginatedResults
close, getArgs, getColumns, getPagination, getSql, ids, iterator, setPaginationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
FeaturePaginatedCursor
Constructor- Parameters:
dao- feature daocursor- feature cursor
-
-
Method Details
-
isPaginated
Determine if the cursor is paginated- Parameters:
cursor- feature cursor- Returns:
- true if paginated
-
getPagination
Get the pagination offset and limit- Parameters:
cursor- feature cursor- Returns:
- pagination or null if not paginated
-
create
Create a paginated cursor- Parameters:
dao- feature daocursor- feature cursor- Returns:
- feature paginated cursor
-
getDao
- Overrides:
getDaoin classUserPaginatedCursor<FeatureColumn,FeatureTable, FeatureRow, FeatureCursor>
-
getResults
- Overrides:
getResultsin classUserPaginatedCursor<FeatureColumn,FeatureTable, FeatureRow, FeatureCursor>
-
getCursor
Get the current paginated cursor- Overrides:
getCursorin classUserPaginatedCursor<FeatureColumn,FeatureTable, FeatureRow, FeatureCursor> - Returns:
- current cursor
-