T - F - public abstract class ProcessingCollection<T extends FeatureType,F extends Feature> extends BaseFeatureCollection<T,F>
Besides the few methods that the implementor actually needs to override it suggested to consider overriding also the followings to get extra performance gains:
id, schema| Constructor and Description |
|---|
ProcessingCollection() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
buildTargetFeatureType()
Builds once and for all the target feature type.
|
abstract FeatureIterator<F> |
features()
Streams out the output features
|
abstract ReferencedEnvelope |
getBounds()
The bounds of features in the output.
|
protected ReferencedEnvelope |
getFeatureBounds()
Deprecated.
Use {@link DataUtilities#bounds(FeatureIterator)
|
protected int |
getFeatureCount()
Deprecated.
Use {@link DataUtilities#count(org.geotools.feature.FeatureCollection)
|
T |
getSchema()
The schema for the child feature members of this collection.
|
abstract int |
size()
The number of features in the output.
|
protected List<F> |
toList()
Deprecated.
|
accepts, contains, containsAll, getID, isEmpty, sort, subCollection, toArray, toArraypublic abstract FeatureIterator<F> features()
features in interface FeatureCollection<T extends FeatureType,F extends Feature>features in class BaseFeatureCollection<T extends FeatureType,F extends Feature>public abstract ReferencedEnvelope getBounds()
getBounds in interface FeatureCollection<T extends FeatureType,F extends Feature>getBounds in class BaseFeatureCollection<T extends FeatureType,F extends Feature>protected abstract T buildTargetFeatureType()
public abstract int size()
size in interface FeatureCollection<T extends FeatureType,F extends Feature>size in class BaseFeatureCollection<T extends FeatureType,F extends Feature>Collection.size()protected int getFeatureCount()
features()protected List<F> toList()
DataUtilities.list(org.geotools.feature.FeatureCollection)protected ReferencedEnvelope getFeatureBounds()
features()public T getSchema()
FeatureCollectionRepresents the most general FeatureType in common to all the features in this collection.
getSchema in interface FeatureCollection<T extends FeatureType,F extends Feature>getSchema in class BaseFeatureCollection<T extends FeatureType,F extends Feature>Copyright © 1996–2019 Geotools. All rights reserved.