Package org.geotools.process.vector
Class SimpleProcessingCollection
- Object
-
- BaseFeatureCollection<T,F>
-
- ProcessingCollection<SimpleFeatureType,SimpleFeature>
-
- SimpleProcessingCollection
-
- All Implemented Interfaces:
SimpleFeatureCollection
,FeatureCollection<SimpleFeatureType,SimpleFeature>
public abstract class SimpleProcessingCollection extends ProcessingCollection<SimpleFeatureType,SimpleFeature> implements SimpleFeatureCollection
The simple feature version ofProcessingCollection
. 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 Constructor Description SimpleProcessingCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleFeatureCollection
sort(SortBy order)
Obtained sorted contents, only implemented for SimpleFeature at present.SimpleFeatureCollection
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
-
-
-
-
Method Detail
-
sort
public SimpleFeatureCollection sort(SortBy order)
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
public SimpleFeatureCollection subCollection(Filter filter)
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
-
-