public abstract class IndexedMappingFeatureIterator extends Object implements IMappingFeatureIterator
Modifier and Type | Field and Description |
---|---|
protected FilterFactory2 |
ff |
protected IndexIdIterator |
indexIterator |
protected IndexQueryManager |
indexModeProc |
protected FeatureTypeMapping |
mapping |
protected Query |
query |
protected IndexQueryManager.QueryIndexCoverage |
queryMode |
protected FeatureIterator<? extends Feature> |
sourceIterator |
protected AppSchemaDataAccess |
store |
protected Transaction |
transaction |
protected Filter |
unrolledFilter |
Constructor and Description |
---|
IndexedMappingFeatureIterator(AppSchemaDataAccess store,
FeatureTypeMapping mapping,
Query query,
Filter unrolledFilter,
Transaction transaction,
IndexQueryManager indexModeProcessor) |
Modifier and Type | Method and Description |
---|---|
AttributeMapping |
getFidAttrMap() |
String |
getFidIndexName() |
XPathUtil.StepList |
getFidStepList() |
protected static AttributeMapping |
getIndexedAttribute(FeatureTypeMapping mapping,
String xpath)
Search for indexed attribute, including on Nested Features
|
protected IndexIdIterator |
getIndexIterator() |
protected List<PropertyName> |
getIndexQueryProperties() |
protected List<String> |
getNextSourceIdList()
Extracts next id list from index iterator
|
protected void |
initializeIndexIterator()
Initialize the index FeatureCollection and iterator
|
protected boolean |
isDenormalized() |
protected void |
selectExecutionPlan()
Analyze query and select a plan: 1.- All fields indexed, execute all query on index layer 2.-
Mixed fields indexed and not, execute indexed operators and re-map query to database
|
protected Query |
transformQueryToIdsOnly()
Convert query to retrieve only id field, no other fields
|
protected Filter |
unrollFilter(Filter filter) |
static PropertyName |
unrollIndex(PropertyName expression,
FeatureTypeMapping mapping) |
protected Query |
unrollIndexes(Query query) |
protected SortBy[] |
unrollSortBy(SortBy[] sortArray) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, hasNext, next, remove
close, hasNext, next
protected FilterFactory2 ff
protected final AppSchemaDataAccess store
protected final FeatureTypeMapping mapping
protected final Query query
protected final Filter unrolledFilter
protected final Transaction transaction
protected IndexIdIterator indexIterator
protected FeatureIterator<? extends Feature> sourceIterator
protected IndexQueryManager indexModeProc
protected IndexQueryManager.QueryIndexCoverage queryMode
public IndexedMappingFeatureIterator(AppSchemaDataAccess store, FeatureTypeMapping mapping, Query query, Filter unrolledFilter, Transaction transaction, IndexQueryManager indexModeProcessor)
protected void selectExecutionPlan()
public static PropertyName unrollIndex(PropertyName expression, FeatureTypeMapping mapping)
public XPathUtil.StepList getFidStepList()
public AttributeMapping getFidAttrMap()
public String getFidIndexName()
protected boolean isDenormalized()
protected IndexIdIterator getIndexIterator()
protected void initializeIndexIterator() throws IOException
IOException
protected Query transformQueryToIdsOnly()
protected List<PropertyName> getIndexQueryProperties()
protected List<String> getNextSourceIdList()
protected static AttributeMapping getIndexedAttribute(FeatureTypeMapping mapping, String xpath)
Copyright © 1996–2019 Geotools. All rights reserved.