| java.lang.Object org.geotools.data.complex.ComplexDataStore
ComplexDataStore | public class ComplexDataStore implements FeatureAccess(Code) | | author: Gabriel Roldan, Axios Engineering version: $Id: ComplexDataStore.java 28577 2008-01-03 15:44:29Z groldan $ since: 2.4 |
Method Summary | |
public Source | access(Name typeName) | public void | createSchema(org.geotools.feature.FeatureType featureType) | public Object | describe(Name typeName) | public void | dispose() | protected Envelope | getBounds(Query query) Computes the bounds of the features for the specified feature type that
satisfy the query provided that there is a fast way to get that result.
Will return null if there is not fast way to compute the bounds. | protected int | getCount(Query targetQuery) Gets the number of the features that would be returned by this query for
the specified feature type.
If getBounds(Query) returns -1 due to expense consider
using getFeatures(Query).getCount() as a an alternative.
Parameters: targetQuery - Contains the Filter and MaxFeatures to find the bounds for. | protected FeatureReader | getFeatureReader(String typeName, Query query) GR: this method is called from inside getFeatureReader(Query ,Transaction )
to allow subclasses return an optimized FeatureReader wich supports the
filter and attributes truncation specified in query
A subclass that supports the creation of such an optimized FeatureReader
shold override this method. | protected FeatureReader | getFeatureReader(String typeName) | public FeatureReader | getFeatureReader(Query query, Transaction transaction) | public FeatureSource | getFeatureSource(String typeName) | public FeatureWriter | getFeatureWriter(String typeName, Filter filter, Transaction transaction) | public FeatureWriter | getFeatureWriter(String typeName, Transaction transaction) | public FeatureWriter | getFeatureWriterAppend(String typeName, Transaction transaction) | public ServiceInfo | getInfo() | public LockingManager | getLockingManager() | public FeatureTypeMapping | getMapping(String typeName) Returns the mapping suite for the given target type name. | public List | getNames() | public org.geotools.feature.FeatureType | getSchema(String typeName) Finds the target FeatureType named typeName in this
ComplexDatastore's internal list of FeatureType mappings and returns it. | public String[] | getTypeNames() | protected Filter | getUnsupportedFilter(String typeName, Filter filter) Returns Filter.INCLUDE , as the whole filter is unrolled
and passed back to the underlying DataStore to be treated. | public FeatureSource | getView(Query query) | public static Filter | unrollFilter(Filter complexFilter, FeatureTypeMapping mapping) Takes a filter that operates against a
's
target FeatureType, and unrolls it creating a new Filter that operates
against the mapping's source FeatureType. | public Query | unrollQuery(Query query, FeatureTypeMapping mapping) Creates a org.geotools.data.Query that operates over the
surrogate DataStore, by unrolling the
org.geotools.filter.Filter contained in the passed
query , and replacing the list of required attributes by
the ones of the mapped FeatureType. | public void | updateSchema(String typeName, org.geotools.feature.FeatureType featureType) |
ComplexDataStore | public ComplexDataStore(Set mappings)(Code) | | Parameters: mappings - a Set containing a for eachFeatureType this DataStore is going to hold. |
dispose | public void dispose()(Code) | | |
getBounds | protected Envelope getBounds(Query query) throws IOException(Code) | | Computes the bounds of the features for the specified feature type that
satisfy the query provided that there is a fast way to get that result.
Will return null if there is not fast way to compute the bounds. Since
it's based on some kind of header/cached information, it's not guaranteed
to be real bound of the features
Parameters: query - the bounds, or null if too expensive throws: SchemaNotFoundException - throws: IOException - |
getCount | protected int getCount(Query targetQuery) throws IOException(Code) | | Gets the number of the features that would be returned by this query for
the specified feature type.
If getBounds(Query) returns -1 due to expense consider
using getFeatures(Query).getCount() as a an alternative.
Parameters: targetQuery - Contains the Filter and MaxFeatures to find the bounds for. The number of Features provided by the Query or -1 if count is too expensive to calculate or any errors or occur. throws: IOException - throws: IOException - if there are errors getting the count |
getFeatureReader | protected FeatureReader getFeatureReader(String typeName, Query query) throws IOException(Code) | | GR: this method is called from inside getFeatureReader(Query ,Transaction )
to allow subclasses return an optimized FeatureReader wich supports the
filter and attributes truncation specified in query
A subclass that supports the creation of such an optimized FeatureReader
shold override this method. Otherwise, it just returns
getFeatureReader(typeName)
|
getTypeNames | public String[] getTypeNames() throws IOException(Code) | | Returns the set of target type names this DataStore holds, where the term
'target type name' refers to the name of one of the types this datastore
produces by mapping another ones through the definitions stored in its
s
|
getUnsupportedFilter | protected Filter getUnsupportedFilter(String typeName, Filter filter)(Code) | | Returns Filter.INCLUDE , as the whole filter is unrolled
and passed back to the underlying DataStore to be treated.
Filter.INLCUDE |
unrollFilter | public static Filter unrollFilter(Filter complexFilter, FeatureTypeMapping mapping)(Code) | | Takes a filter that operates against a
's
target FeatureType, and unrolls it creating a new Filter that operates
against the mapping's source FeatureType.
Parameters: complexFilter - TODO: implement filter unrolling |
unrollQuery | public Query unrollQuery(Query query, FeatureTypeMapping mapping)(Code) | | Creates a org.geotools.data.Query that operates over the
surrogate DataStore, by unrolling the
org.geotools.filter.Filter contained in the passed
query , and replacing the list of required attributes by
the ones of the mapped FeatureType.
Parameters: query - Parameters: mapping - |
|
|