Package org.geotools.feature.collection
Class BaseSimpleFeatureCollection
- Object
- 
- BaseFeatureCollection<SimpleFeatureType,SimpleFeature>
- 
- BaseSimpleFeatureCollection
 
 
- 
- All Implemented Interfaces:
- SimpleFeatureCollection,- FeatureCollection<SimpleFeatureType,SimpleFeature>
 - Direct Known Subclasses:
- PagingFeatureCollection,- SubFeatureCollection
 
 public abstract class BaseSimpleFeatureCollection extends BaseFeatureCollection<SimpleFeatureType,SimpleFeature> implements SimpleFeatureCollection 
- 
- 
Field Summary- 
Fields inherited from class BaseFeatureCollectionid, schema
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBaseSimpleFeatureCollection(SimpleFeatureType schema)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract SimpleFeatureIteratorfeatures()Subclasses required to implement this method to traverse FeatureCollection contents.SimpleFeatureCollectionsort(SortBy order)Obtained sorted contents, only implemented for SimpleFeature at present.SimpleFeatureCollectionsubCollection(Filter filter)Convenience implementation that just wraps this collection into aFilteringFeatureCollection.- 
Methods inherited from class BaseFeatureCollectionaccepts, contains, containsAll, getBounds, getID, getSchema, isEmpty, size, toArray, toArray
 
- 
 
- 
- 
- 
Constructor Detail- 
BaseSimpleFeatureCollectionprotected BaseSimpleFeatureCollection(SimpleFeatureType schema) 
 
- 
 - 
Method Detail- 
featurespublic abstract SimpleFeatureIterator features() Subclasses 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- BaseFeatureCollection<SimpleFeatureType,SimpleFeature>
- Returns:
- A FeatureIterator.
 
 - 
subCollectionpublic SimpleFeatureCollection subCollection(Filter filter) Description copied from class:BaseFeatureCollectionConvenience implementation that just wraps this collection into aFilteringFeatureCollection. Subclasses might want to override this in case the filter can be cascaded to their data sources.- Specified by:
- subCollectionin interface- FeatureCollection<SimpleFeatureType,SimpleFeature>
- Specified by:
- subCollectionin interface- SimpleFeatureCollection
- Overrides:
- subCollectionin class- BaseFeatureCollection<SimpleFeatureType,SimpleFeature>
- Returns:
- SimpleFeatureCollection identified as subset.
- See Also:
- FeatureList
 
 - 
sortpublic SimpleFeatureCollection sort(SortBy order) Description copied from class:BaseFeatureCollectionObtained sorted contents, only implemented for SimpleFeature at present.This method only supports SimpleFeature at present, consider use of FeatureSource.features( Query ). - Specified by:
- sortin interface- FeatureCollection<SimpleFeatureType,SimpleFeature>
- Specified by:
- sortin interface- SimpleFeatureCollection
- Overrides:
- sortin class- BaseFeatureCollection<SimpleFeatureType,SimpleFeature>
- Parameters:
- order- Sort order
- Returns:
- FeatureCollection sorted in the indicated order
 
 
- 
 
-