protected class CollectionFeatureSource.SubCollection extends DecoratingSimpleFeatureCollection
Will route any calls refining the feature collection back to CollectionFeatureSource. This is based on the success of ContentFeatureCollection.
|Modifier||Constructor and Description|
|Modifier and Type||Method and Description|
Obtained sorted contents.
SimpleFeatureCollection "view" indicated by provided filter.
accepts, canDelegate, contains, containsAll, equals, features, getBounds, getID, getSchema, hashCode, isEmpty, size, toArray, toArray
public SimpleFeatureCollection subCollection(Filter filter)
The contents of the returned SimpleFeatureCollection are determined by applying the provider Filter to the entire contents of this FeatureCollection. The result is "live" and modifications will be shared.
This method is used cut down on the number of filter based methods required for a useful SimpleFeatureCollection construct. The FeatureCollections returned really should be considered as a temporary "view" used to control the range of a removeAll, or modify operation.
The above recommended use is agreement with the Collections API precident of List.subList( start, end ).
collection.subCollection( filter ).clear();
The results of subCollection:
public SimpleFeatureCollection sort(SortBy order)
This method may not be supported by all implementations, consider the use of FeatureSource.features( Query ).
Copyright © 1996–2020 Geotools. All rights reserved.