Package mil.nga.geopackage.attributes
Class AttributesPaginatedCursor
java.lang.Object
mil.nga.geopackage.user.UserCorePaginatedResults<TColumn,TTable,TRow,TResult>
mil.nga.geopackage.user.UserPaginatedCursor<AttributesColumn,AttributesTable,AttributesRow,AttributesCursor>
mil.nga.geopackage.attributes.AttributesPaginatedCursor
- All Implemented Interfaces:
Iterable<AttributesRow>
public class AttributesPaginatedCursor
extends UserPaginatedCursor<AttributesColumn,AttributesTable,AttributesRow,AttributesCursor>
Attributes Paginated Cursor for iterating and querying through attributes in
chunks
- Since:
- 6.2.0
-
Constructor Summary
ConstructorDescriptionAttributesPaginatedCursor
(AttributesDao dao, AttributesCursor cursor) Constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic AttributesPaginatedCursor
create
(AttributesDao dao, AttributesCursor cursor) Create a paginated cursorGet the current paginated cursorgetDao()
static Pagination
getPagination
(AttributesCursor cursor) Get the pagination offset and limitstatic boolean
isPaginated
(AttributesCursor cursor) Determine if the cursor is paginatedMethods 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 Details
-
AttributesPaginatedCursor
Constructor- Parameters:
dao
- attributes daocursor
- attributes cursor
-
-
Method Details
-
isPaginated
Determine if the cursor is paginated- Parameters:
cursor
- attributes cursor- Returns:
- true if paginated
-
getPagination
Get the pagination offset and limit- Parameters:
cursor
- attributes cursor- Returns:
- pagination or null if not paginated
-
create
Create a paginated cursor- Parameters:
dao
- attributes daocursor
- attributes cursor- Returns:
- attributes paginated cursor
-
getDao
- Overrides:
getDao
in classUserPaginatedCursor<AttributesColumn,
AttributesTable, AttributesRow, AttributesCursor>
-
getResults
- Overrides:
getResults
in classUserPaginatedCursor<AttributesColumn,
AttributesTable, AttributesRow, AttributesCursor>
-
getCursor
Get the current paginated cursor- Overrides:
getCursor
in classUserPaginatedCursor<AttributesColumn,
AttributesTable, AttributesRow, AttributesCursor> - Returns:
- current cursor
-