Package org.geotools.data.complex
Class PartialIndexedMappingFeatureIterator
- Object
-
- IndexedMappingFeatureIterator
-
- PartialIndexedMappingFeatureIterator
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterator<Feature>
,IMappingFeatureIterator
,FeatureIterator<Feature>
public class PartialIndexedMappingFeatureIterator extends IndexedMappingFeatureIterator
MappingFeatureIterator with partial index query support- Author:
- Fernando MiƱo, Geosolutions
-
-
Field Summary
-
Fields inherited from class IndexedMappingFeatureIterator
ff, indexIterator, indexModeProc, mapping, query, queryMode, sourceIterator, store, transaction, unrolledFilter
-
-
Constructor Summary
Constructors Constructor Description PartialIndexedMappingFeatureIterator(AppSchemaDataAccess store, FeatureTypeMapping mapping, Query query, Filter unrolledFilter, Transaction transaction, IndexQueryManager indexModeProcessor)
PartialIndexedMappingFeatureIterator(AppSchemaDataAccess store, FeatureTypeMapping mapping, Query query, Filter unrolledFilter, Transaction transaction, IndexQueryManager indexModeProcessor, int maxNumRound)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes this iterator and releases any system resources associated with it.boolean
hasNext()
Does another Feature exist in this Iteration.Feature
next()
Get the next Feature in this iteration.protected Query
transformQueryToIdsOnly()
Build the query for execute on index source partial Implementation manages pagination by itself, so remove bounds from query-
Methods inherited from class IndexedMappingFeatureIterator
getFidAttrMap, getFidIndexName, getFidStepList, getIndexedAttribute, getIndexIterator, getIndexQueryProperties, getNextSourceIdList, initializeIndexIterator, isDenormalized, selectExecutionPlan, unrollFilter, unrollIndex, unrollIndexes, unrollSortBy
-
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface Iterator
forEachRemaining, remove
-
-
-
-
Constructor Detail
-
PartialIndexedMappingFeatureIterator
public PartialIndexedMappingFeatureIterator(AppSchemaDataAccess store, FeatureTypeMapping mapping, Query query, Filter unrolledFilter, Transaction transaction, IndexQueryManager indexModeProcessor)
-
PartialIndexedMappingFeatureIterator
public PartialIndexedMappingFeatureIterator(AppSchemaDataAccess store, FeatureTypeMapping mapping, Query query, Filter unrolledFilter, Transaction transaction, IndexQueryManager indexModeProcessor, int maxNumRound)
-
-
Method Detail
-
transformQueryToIdsOnly
protected Query transformQueryToIdsOnly()
Build the query for execute on index source partial Implementation manages pagination by itself, so remove bounds from query- Overrides:
transformQueryToIdsOnly
in classIndexedMappingFeatureIterator
- Returns:
- Query
-
hasNext
public boolean hasNext()
Description copied from interface:FeatureIterator
Does another Feature exist in this Iteration.Iterator defin: Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)
- Returns:
- true if more Features exist, false otherwise.
-
next
public Feature next()
Description copied from interface:FeatureIterator
Get the next Feature in this iteration.- Returns:
- The next Feature
-
close
public void close()
Description copied from interface:FeatureIterator
Closes this iterator and releases any system resources associated with it.
-
-