public abstract class SimpleProcessingCollection extends ProcessingCollection<SimpleFeatureType,SimpleFeature> implements SimpleFeatureCollection
ProcessingCollection
. Please see the base class for further
information on how to implement a proper streaming processing collection on top of this base
classid, schema
Constructor and Description |
---|
SimpleProcessingCollection() |
Modifier and Type | Method and 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 a
FilteringFeatureCollection . |
buildTargetFeatureType, features, getBounds, getFeatureBounds, getFeatureCount, getSchema, size, toList
accepts, contains, containsAll, getID, isEmpty, toArray, toArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
features
public SimpleFeatureCollection sort(SortBy order)
BaseFeatureCollection
This method only supports SimpleFeature at present, consider use of FeatureSource.features( Query ).
sort
in interface SimpleFeatureCollection
sort
in interface FeatureCollection<SimpleFeatureType,SimpleFeature>
sort
in class BaseFeatureCollection<SimpleFeatureType,SimpleFeature>
order
- Sort orderpublic SimpleFeatureCollection subCollection(Filter filter)
BaseFeatureCollection
FilteringFeatureCollection
. Subclasses might want to override this in case the filter can be
cascaded to their data sources.subCollection
in interface SimpleFeatureCollection
subCollection
in interface FeatureCollection<SimpleFeatureType,SimpleFeature>
subCollection
in class BaseFeatureCollection<SimpleFeatureType,SimpleFeature>
FeatureList
Copyright © 1996–2019 Geotools. All rights reserved.