|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.caching.grid.featurecache.readers.GridCacheFeatureReader
public class GridCacheFeatureReader
Feature Reader that reads features from a cache.
Constructor Summary | |
---|---|
GridCacheFeatureReader(java.util.Collection<NodeIdentifier> nodeids,
GridSpatialIndex g)
Creates a feature reader which reads features from a collection of nodes. |
Method Summary | |
---|---|
void |
close()
Closes the feature reader |
org.opengis.feature.simple.SimpleFeatureType |
getFeatureType()
Return the FeatureType this reader has been configured to create. |
boolean |
hasNext()
Query whether this FeatureReader has another Feature. |
org.opengis.feature.simple.SimpleFeature |
next()
Returns the next element in the collection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GridCacheFeatureReader(java.util.Collection<NodeIdentifier> nodeids, GridSpatialIndex g)
nodeids
- g
- Method Detail |
---|
public void close() throws java.io.IOException
close
in interface FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
java.io.IOException
- DOCUMENT ME!public org.opengis.feature.simple.SimpleFeatureType getFeatureType()
FeatureReader
getFeatureType
in interface FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
public boolean hasNext() throws java.io.IOException
FeatureReader
hasNext
in interface FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
java.io.IOException
- If an error occurs determining if there are more
Features.public org.opengis.feature.simple.SimpleFeature next() throws java.io.IOException, java.lang.IllegalArgumentException, java.util.NoSuchElementException
next
in interface FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
java.io.IOException
- If an error occurs reading the Feature.
java.util.NoSuchElementException
- If there are no more Features in the
Reader.
java.lang.IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |