Package org.geotools.process.vector
Class SimpleProcessingCollection
- All Implemented Interfaces:
SimpleFeatureCollection
,FeatureCollection<SimpleFeatureType,
SimpleFeature>
public abstract class SimpleProcessingCollection
extends ProcessingCollection<SimpleFeatureType,SimpleFeature>
implements SimpleFeatureCollection
The simple feature version of
ProcessingCollection
. Please see the base class for further information on how
to implement a proper streaming processing collection on top of this base class- Author:
- Andrea Aime - GeoSolutions
-
Field Summary
Fields inherited from class BaseFeatureCollection
id, schema
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtained sorted contents, only implemented for SimpleFeature at present.subCollection
(Filter filter) Convenience implementation that just wraps this collection into aFilteringFeatureCollection
.Methods inherited from class ProcessingCollection
buildTargetFeatureType, features, getBounds, getSchema, size
Methods inherited from class BaseFeatureCollection
accepts, contains, containsAll, getID, isEmpty, toArray, toArray
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface FeatureCollection
accepts, contains, containsAll, getBounds, getID, getSchema, isEmpty, size, toArray, toArray
Methods inherited from interface SimpleFeatureCollection
features
-
Constructor Details
-
SimpleProcessingCollection
public SimpleProcessingCollection()
-
-
Method Details
-
sort
Description copied from class:BaseFeatureCollection
Obtained sorted contents, only implemented for SimpleFeature at present.This method only supports SimpleFeature at present, consider use of FeatureSource.features( Query ).
- Specified by:
sort
in interfaceFeatureCollection<SimpleFeatureType,
SimpleFeature> - Specified by:
sort
in interfaceSimpleFeatureCollection
- Overrides:
sort
in classBaseFeatureCollection<SimpleFeatureType,
SimpleFeature> - Parameters:
order
- Sort order- Returns:
- FeatureCollection sorted in the indicated order
-
subCollection
Description copied from class:BaseFeatureCollection
Convenience 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:
subCollection
in interfaceFeatureCollection<SimpleFeatureType,
SimpleFeature> - Specified by:
subCollection
in interfaceSimpleFeatureCollection
- Overrides:
subCollection
in classBaseFeatureCollection<SimpleFeatureType,
SimpleFeature> - Returns:
- SimpleFeatureCollection identified as subset.
- See Also:
-
FeatureList
-