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.
FeatureCollection
id, 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
FeatureReaderIterator s 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, writer
public ArcSdeFeatureCollection(ArcSdeFeatureSource featureSource, SimpleFeatureType queryType, Query namedQuery) throws IOException
IOException
public final SimpleFeatureType getSchema()
FeatureCollection
Represents the most general FeatureType in common to all the features in this collection.
getSchema
in interface FeatureCollection<SimpleFeatureType,SimpleFeature>
getSchema
in class DataFeatureCollection
FeatureCollection.getSchema()
public final ReferencedEnvelope getBounds()
FeatureCollection
getBounds
in interface FeatureCollection<SimpleFeatureType,SimpleFeature>
getBounds
in class DataFeatureCollection
FeatureCollection.getBounds()
public final int getCount() throws IOException
getCount
in class DataFeatureCollection
IOException
public FeatureReader<SimpleFeatureType,SimpleFeature> reader() throws IOException
reader
in class DataFeatureCollection
IOException
protected Iterator<SimpleFeature> openIterator() throws IOException
DataFeatureCollection.writer()
and it's UnsupportedOperationException
openIterator
in class DataFeatureCollection
IOException
protected void closeIterator(Iterator<SimpleFeature> close) throws IOException
FeatureReaderIterator
s 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 DataFeatureCollection
IOException
Copyright © 1996–2019 Geotools. All rights reserved.