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
Constructors Constructor Description AttributesPaginatedCursor(AttributesDao dao, AttributesCursor cursor)Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AttributesPaginatedCursorcreate(AttributesDao dao, AttributesCursor cursor)Create a paginated cursorAttributesCursorgetCursor()Get the current paginated cursorAttributesDaogetDao()static PaginationgetPagination(AttributesCursor cursor)Get the pagination offset and limitAttributesCursorgetResults()static booleanisPaginated(AttributesCursor cursor)Determine if the cursor 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
-
AttributesPaginatedCursor
public AttributesPaginatedCursor(AttributesDao dao, AttributesCursor cursor)
Constructor- Parameters:
dao- attributes daocursor- attributes cursor
-
-
Method Detail
-
isPaginated
public static boolean isPaginated(AttributesCursor cursor)
Determine if the cursor is paginated- Parameters:
cursor- attributes cursor- Returns:
- true if paginated
-
getPagination
public static Pagination getPagination(AttributesCursor cursor)
Get the pagination offset and limit- Parameters:
cursor- attributes cursor- Returns:
- pagination or null if not paginated
-
create
public static AttributesPaginatedCursor create(AttributesDao dao, AttributesCursor cursor)
Create a paginated cursor- Parameters:
dao- attributes daocursor- attributes cursor- Returns:
- attributes paginated cursor
-
getDao
public AttributesDao getDao()
- Overrides:
getDaoin classUserPaginatedCursor<AttributesColumn,AttributesTable,AttributesRow,AttributesCursor>
-
getResults
public AttributesCursor getResults()
- Overrides:
getResultsin classUserPaginatedCursor<AttributesColumn,AttributesTable,AttributesRow,AttributesCursor>
-
getCursor
public AttributesCursor getCursor()
Get the current paginated cursor- Overrides:
getCursorin classUserPaginatedCursor<AttributesColumn,AttributesTable,AttributesRow,AttributesCursor>- Returns:
- current cursor
-
-