Package org.geotools.data.geojson
Class PagingFeatureCollection
- Object
- 
- BaseFeatureCollection<SimpleFeatureType,SimpleFeature>
- 
- BaseSimpleFeatureCollection
- 
- PagingFeatureCollection
 
 
 
- 
- All Implemented Interfaces:
- SimpleFeatureCollection,- FeatureCollection<SimpleFeatureType,SimpleFeature>
 
 public class PagingFeatureCollection extends BaseSimpleFeatureCollection A GeoJSON specific feature collection that can follow "next" links in order to retrieve all data
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected classPagingFeatureCollection.PagingFeatureIterator
 - 
Field SummaryFields Modifier and Type Field Description protected static LoggerLOGGER- 
Fields inherited from class BaseFeatureCollectionid, schema
 
- 
 - 
Constructor SummaryConstructors Constructor Description PagingFeatureCollection(SimpleFeatureCollection first, ObjectNode next, Integer matched)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleFeatureIteratorfeatures()Subclasses required to implement this method to traverse FeatureCollection contents.protected SimpleFeatureCollectiongetFirstCollection()IntegergetMatched()Matched header from the GeoJSON feature collection, if found, or null otherwise.protected ObjectNodegetNext()protected SimpleFeatureCollectionreadNext(ObjectNode next)Reads the next feature collection, or return null if there is none.intsize()Returns the number of elements in this collection.- 
Methods inherited from class BaseSimpleFeatureCollectionsort, subCollection
 - 
Methods inherited from class BaseFeatureCollectionaccepts, contains, containsAll, getBounds, getID, getSchema, isEmpty, toArray, toArray
 - 
Methods inherited from class Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface FeatureCollectionaccepts, contains, containsAll, getBounds, getID, getSchema, isEmpty, toArray, toArray
 
- 
 
- 
- 
- 
Field Detail- 
LOGGERprotected static final Logger LOGGER 
 
- 
 - 
Constructor Detail- 
PagingFeatureCollectionpublic PagingFeatureCollection(SimpleFeatureCollection first, ObjectNode next, Integer matched) 
 
- 
 - 
Method Detail- 
getMatchedpublic Integer getMatched() Matched header from the GeoJSON feature collection, if found, or null otherwise.
 - 
sizepublic int size() Description copied from class:BaseFeatureCollectionReturns the number of elements in this collection.- Specified by:
- sizein interface- FeatureCollection<SimpleFeatureType,SimpleFeature>
- Overrides:
- sizein class- BaseFeatureCollection<SimpleFeatureType,SimpleFeature>
- Returns:
- Number of items, or Interger.MAX_VALUE
- See Also:
- Collection.size()
 
 - 
featurespublic SimpleFeatureIterator features() Description copied from class:BaseSimpleFeatureCollectionSubclasses required to implement this method to traverse FeatureCollection contents.Note that FeatureIterator.close()is available to clean up after any resource use required during traversal.- Specified by:
- featuresin interface- FeatureCollection<SimpleFeatureType,SimpleFeature>
- Specified by:
- featuresin interface- SimpleFeatureCollection
- Specified by:
- featuresin class- BaseSimpleFeatureCollection
- Returns:
- A FeatureIterator.
 
 - 
getFirstCollectionprotected SimpleFeatureCollection getFirstCollection() 
 - 
getNextprotected ObjectNode getNext() 
 - 
readNextprotected SimpleFeatureCollection readNext(ObjectNode next) throws IOException Reads the next feature collection, or return null if there is none. Subclasses can override if they need a different logic for fetching the next page.- Throws:
- IOException
 
 
- 
 
-