public class ArcSdeFeatureCollection extends DataFeatureCollection
ArcSDEFeatureReader or one of the
decorators over it returned by ArcSDEDataStore#getFeatureReader(Query, Session, boolean).
Note this class and the iterators it returns are thread safe.
FeatureCollectionid, listeners, schema| Constructor and Description |
|---|
ArcSdeFeatureCollection(ArcSdeFeatureSource featureSource,
SimpleFeatureType queryType,
Query namedQuery) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeIterator(Iterator<SimpleFeature> close)
Overrides to deal with closing the
FeatureReaderIterators created at openIterator(), as superclass uses another class that does the same but its package visible
(actually I don't see the point on two versions of FeatureReaderIterator?) |
ReferencedEnvelope |
getBounds()
Get the total bounds of this collection which is calculated by doing a union of the bounds of
each feature inside of it
|
int |
getCount() |
SimpleFeatureType |
getSchema()
The schema for the child feature members of this collection.
|
protected Iterator<SimpleFeature> |
openIterator()
Overrides to avoid the superclass' call to
DataFeatureCollection.writer() and it's UnsupportedOperationException |
FeatureReader<SimpleFeatureType,SimpleFeature> |
reader() |
accepts, add, addAll, addAll, addListener, clear, close, close, contains, containsAll, features, fireChange, fireChange, fireChange, getID, isEmpty, iterator, purge, remove, removeAll, removeListener, retainAll, size, sort, subCollection, toArray, toArray, writerpublic ArcSdeFeatureCollection(ArcSdeFeatureSource featureSource, SimpleFeatureType queryType, Query namedQuery) throws IOException
IOExceptionpublic final SimpleFeatureType getSchema()
FeatureCollectionRepresents the most general FeatureType in common to all the features in this collection.
getSchema in interface FeatureCollection<SimpleFeatureType,SimpleFeature>getSchema in class DataFeatureCollectionFeatureCollection.getSchema()public final ReferencedEnvelope getBounds()
FeatureCollectiongetBounds in interface FeatureCollection<SimpleFeatureType,SimpleFeature>getBounds in class DataFeatureCollectionFeatureCollection.getBounds()public final int getCount()
throws IOException
getCount in class DataFeatureCollectionIOExceptionpublic FeatureReader<SimpleFeatureType,SimpleFeature> reader() throws IOException
reader in class DataFeatureCollectionIOExceptionprotected Iterator<SimpleFeature> openIterator() throws IOException
DataFeatureCollection.writer() and it's UnsupportedOperationExceptionopenIterator in class DataFeatureCollectionIOExceptionprotected void closeIterator(Iterator<SimpleFeature> close) throws IOException
FeatureReaderIterators created at openIterator(), as superclass uses another class that does the same but its package visible
(actually I don't see the point on two versions of FeatureReaderIterator?)closeIterator in class DataFeatureCollectionIOExceptionCopyright © 1996–2019 Geotools. All rights reserved.