org.geotools.data.jdbc
Class JDBCFeatureCollection
Object
DataFeatureCollection
DefaultFeatureResults
JDBCFeatureCollection
- All Implemented Interfaces:
- FeatureCollection<SimpleFeatureType,SimpleFeature>
- Direct Known Subclasses:
- PostgisFeatureCollection
public class JDBCFeatureCollection
- extends DefaultFeatureResults
- Since:
- 2.2.0
- Module:
Field Summary |
boolean |
isOptimized
The logger for the filter module. |
Method Summary |
void |
accepts(FeatureVisitor visitor,
ProgressListener progress)
Accepts FeatureVisitors. |
int |
getCount()
Performs optimized count if possible. |
FeatureReader<SimpleFeatureType,SimpleFeature> |
reader()
JDBCDataStore has a more direct query method |
Methods inherited from class DataFeatureCollection |
accepts, add, addAll, addAll, addListener, clear, close, close, closeIterator, contains, containsAll, features, fireChange, fireChange, fireChange, getID, isEmpty, iterator, openIterator, purge, remove, removeAll, removeListener, retainAll, size, sort, sort, subCollection, toArray, toArray, writer |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isOptimized
public boolean isOptimized
- The logger for the filter module.
JDBCFeatureCollection
public JDBCFeatureCollection(JDBCFeatureSource source,
Query query)
throws IOException
- Throws:
IOException
reader
public FeatureReader<SimpleFeatureType,SimpleFeature> reader()
throws IOException
- JDBCDataStore has a more direct query method
- Overrides:
reader
in class DefaultFeatureResults
- Returns:
- DOCUMENT ME!
- Throws:
IOException
- DOCUMENT ME!
getCount
public int getCount()
throws IOException
- Performs optimized count if possible.
- Overrides:
getCount
in class DefaultFeatureResults
- Throws:
IOException
DataSourceException
- See IOException- See Also:
DefaultFeatureResults.getCount()
accepts
public void accepts(FeatureVisitor visitor,
ProgressListener progress)
- Accepts FeatureVisitors.
Note for some FeatureCalc visitors an optimized code path will be used.
- Specified by:
accepts
in interface FeatureCollection<SimpleFeatureType,SimpleFeature>
- Overrides:
accepts
in class DataFeatureCollection
- Parameters:
visitor
- DOCUMENT ME!progress
- Used to report progress, may be used to interrupt the operation
- Throws:
IOException
- DOCUMENT ME!
Copyright © 1996-2009 Geotools. All Rights Reserved.