| java.lang.Object org.geotools.data.complex.AbstractMappingFeatureIterator
All known Subclasses: org.geotools.data.complex.GroupingFeatureIterator2, org.geotools.data.complex.GroupingFeatureIterator, org.geotools.data.complex.GroupingFeatureIterator3, org.geotools.data.complex.DefaultMappingFeatureIterator,
AbstractMappingFeatureIterator | abstract class AbstractMappingFeatureIterator implements Iterator(Code) | | Base class for mapping iterator strategies.
This class provides the common behavior for iterating over a mapped
FeatureSource and returning instances of the target FeatureType, by unpacking
the incoming org.geotools.data.Query and creating its
equivalent over the mapped FeatureType.
This way, subclasses should only worry on implementing next()
and hasNext() in a way according to their fetching stratagy,
while this superclass provides them with a FeatureIterator already made by
executing the unpacked Query over the source FeatureSource.
author: Gabriel Roldan, Axios Engineering version: $Id: AbstractMappingFeatureIterator.java 27862 2007-11-12 19:51:19Z desruisseaux $ since: 2.4 |
Method Summary | |
public void | close() | protected String | extractIdForAttribute(Expression idExpression, ComplexAttribute sourceInstance) Based on the set of xpath expression/id extracting expression, finds the
ID for the attribute attributeXPath from the source
complex attribute.
Parameters: attributeXPath - the location path of the attribute to be created, for which toobtain the id by evaluating the correspondingorg.geotools.filter.Expression fromsourceInstance . Parameters: sourceInstance - a complex attribute which is the source of the mapping. | protected String | extractIdForFeature(ComplexAttribute sourceInstance) | abstract protected Query | getUnrolledQuery(Query query) Subclasses must override to provide a query appropiate to its underlying
feature source. | protected Object | getValue(Expression expression, Object sourceFeature) | public void | remove() |
attf | protected FeatureFactory attf(Code) | | Factory used to create the target feature and attributes
|
featureFidMapping | protected Expression featureFidMapping(Code) | | Expression to evaluate the feature id
|
features | protected FeatureCollection features(Code) | | |
AbstractMappingFeatureIterator | public AbstractMappingFeatureIterator(ComplexDataStore store, FeatureTypeMapping mapping, Query query) throws IOException(Code) | | Parameters: store - Parameters: mapping - place holder for the target type, the surrogate FeatureSourceand the mappings between them. Parameters: query - the query over the target feature type, that is to be unpackedto its equivalent over the surrogate feature type. throws: IOException - |
close | public void close()(Code) | | Closes the underlying FeatureIterator
|
extractIdForAttribute | protected String extractIdForAttribute(Expression idExpression, ComplexAttribute sourceInstance)(Code) | | Based on the set of xpath expression/id extracting expression, finds the
ID for the attribute attributeXPath from the source
complex attribute.
Parameters: attributeXPath - the location path of the attribute to be created, for which toobtain the id by evaluating the correspondingorg.geotools.filter.Expression fromsourceInstance . Parameters: sourceInstance - a complex attribute which is the source of the mapping. the ID to be applied to a new attribute instance addressed byattributeXPath , or null if thereis no an id mapping for that attribute. |
extractIdForFeature | protected String extractIdForFeature(ComplexAttribute sourceInstance)(Code) | | |
getUnrolledQuery | abstract protected Query getUnrolledQuery(Query query)(Code) | | Subclasses must override to provide a query appropiate to its underlying
feature source.
Parameters: query - the original query against the output schema a query appropiate to be executed over the underlying featuresource. |
remove | public void remove()(Code) | | Shall not be called, just throws an UnsupportedOperationException
|
|
|