|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.complex.AbstractMappingFeatureIterator
public abstract class AbstractMappingFeatureIterator
Base class for several MappingFeatureImplementation's.
Field Summary | |
---|---|
protected org.opengis.feature.FeatureFactory |
attf
Factory used to create the target feature and attributes |
protected int |
featureCounter
counter to ensure maxFeatures is not exceeded |
protected org.opengis.filter.expression.Expression |
featureFidMapping
Expression to evaluate the feature id |
protected static java.util.logging.Logger |
LOGGER
The logger for the filter module. |
protected FeatureTypeMapping |
mapping
The mappings for the source and target schemas |
protected int |
maxFeatures
maxFeatures restriction value as provided by query |
protected org.opengis.filter.FilterFactory |
namespaceAwareFilterFactory
|
protected org.xml.sax.helpers.NamespaceSupport |
namespaces
|
protected AppSchemaDataAccess |
store
|
static org.opengis.feature.type.Name |
XLINK_HREF_NAME
Name representation of xlink:href |
protected XPath |
xpathAttributeBuilder
|
Constructor Summary | |
---|---|
AbstractMappingFeatureIterator(AppSchemaDataAccess store,
FeatureTypeMapping mapping,
Query query)
|
|
AbstractMappingFeatureIterator(AppSchemaDataAccess store,
FeatureTypeMapping mapping,
Query query,
boolean isQueryUnrolled)
|
Method Summary | |
---|---|
void |
close()
Closes the underlying FeatureIterator |
protected abstract void |
closeSourceFeatures()
|
protected org.opengis.feature.Feature |
computeNext()
|
protected abstract java.lang.String |
extractIdForAttribute(org.opengis.filter.expression.Expression idExpression,
java.lang.Object sourceInstance)
Based on the set of xpath expression/id extracting expression, finds the ID for the attribute idExpression from the source complex attribute. |
protected abstract java.lang.String |
extractIdForFeature()
|
protected abstract java.util.Iterator<org.opengis.feature.Feature> |
getSourceFeatureIterator()
|
protected Query |
getUnrolledQuery(Query query)
Return a query appropriate to its underlying feature source. |
protected abstract java.lang.Object |
getValue(org.opengis.filter.expression.Expression expression,
java.lang.Object sourceFeature)
|
boolean |
hasNext()
Return true if there are more features. |
protected abstract void |
initialiseSourceFeatures(FeatureTypeMapping mapping,
Query query)
|
protected boolean |
isHasNextCalled()
|
protected abstract boolean |
isNextSourceFeatureNull()
|
protected abstract boolean |
isSourceFeatureIteratorNull()
|
org.opengis.feature.Feature |
next()
Return next feature. |
protected abstract org.opengis.feature.Feature |
populateFeatureData(java.lang.String id)
|
void |
remove()
Shall not be called, just throws an UnsupportedOperationException |
protected abstract void |
setClientProperties(org.opengis.feature.Attribute target,
java.lang.Object source,
java.util.Map<org.opengis.feature.type.Name,org.opengis.filter.expression.Expression> clientProperties)
|
protected void |
setGeometry(org.opengis.feature.Feature feature)
Set the feature geometry to that of the first property bound to a JTS geometry |
protected void |
setHasNextCalled(boolean hasNextCalled)
|
protected abstract boolean |
sourceFeatureIteratorHasNext()
|
protected abstract boolean |
unprocessedFeatureExists()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.util.logging.Logger LOGGER
public static final org.opengis.feature.type.Name XLINK_HREF_NAME
protected FeatureTypeMapping mapping
protected org.opengis.filter.expression.Expression featureFidMapping
protected org.opengis.feature.FeatureFactory attf
protected AppSchemaDataAccess store
protected final XPath xpathAttributeBuilder
protected org.opengis.filter.FilterFactory namespaceAwareFilterFactory
protected final int maxFeatures
protected int featureCounter
protected org.xml.sax.helpers.NamespaceSupport namespaces
Constructor Detail |
---|
public AbstractMappingFeatureIterator(AppSchemaDataAccess store, FeatureTypeMapping mapping, Query query) throws java.io.IOException
java.io.IOException
public AbstractMappingFeatureIterator(AppSchemaDataAccess store, FeatureTypeMapping mapping, Query query, boolean isQueryUnrolled) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void remove()
remove
in interface java.util.Iterator<org.opengis.feature.Feature>
public void close()
close
in interface FeatureIterator<org.opengis.feature.Feature>
protected abstract java.lang.String extractIdForAttribute(org.opengis.filter.expression.Expression idExpression, java.lang.Object sourceInstance)
idExpression
from the source complex attribute.
idExpression
- the location path of the attribute to be created, for which to obtain the id by
evaluating the corresponding org.geotools.filter.Expression
from
sourceInstance
.sourceInstance
- a complex attribute which is the source of the mapping.
attributeXPath
, or null
if there is no an id mapping for
that attribute.public org.opengis.feature.Feature next()
next
in interface java.util.Iterator<org.opengis.feature.Feature>
next
in interface FeatureIterator<org.opengis.feature.Feature>
Iterator.next()
public boolean hasNext()
hasNext
in interface java.util.Iterator<org.opengis.feature.Feature>
hasNext
in interface FeatureIterator<org.opengis.feature.Feature>
Iterator.hasNext()
protected Query getUnrolledQuery(Query query)
query
- the original query against the output schema
protected org.opengis.feature.Feature computeNext() throws java.io.IOException
java.io.IOException
protected void setGeometry(org.opengis.feature.Feature feature)
feature
- protected boolean isHasNextCalled()
protected void setHasNextCalled(boolean hasNextCalled)
protected abstract void closeSourceFeatures()
protected abstract java.util.Iterator<org.opengis.feature.Feature> getSourceFeatureIterator()
protected abstract void initialiseSourceFeatures(FeatureTypeMapping mapping, Query query) throws java.io.IOException
java.io.IOException
protected abstract boolean unprocessedFeatureExists()
protected abstract boolean sourceFeatureIteratorHasNext()
protected abstract java.lang.String extractIdForFeature()
protected abstract boolean isNextSourceFeatureNull()
protected abstract org.opengis.feature.Feature populateFeatureData(java.lang.String id) throws java.io.IOException
java.io.IOException
protected abstract java.lang.Object getValue(org.opengis.filter.expression.Expression expression, java.lang.Object sourceFeature)
protected abstract boolean isSourceFeatureIteratorNull()
protected abstract void setClientProperties(org.opengis.feature.Attribute target, java.lang.Object source, java.util.Map<org.opengis.feature.type.Name,org.opengis.filter.expression.Expression> clientProperties)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |