|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.feature.persistence.query.CachedFeatureResultSet
public class CachedFeatureResultSet
FeatureResultSet
backed by a FeatureCollection
Constructor Summary | |
---|---|
CachedFeatureResultSet(FeatureCollection fc)
Creates a new CachedFeatureResultSet that is backed by the given FeatureCollection . |
Method Summary | |
---|---|
void |
close()
Must be invoked after using to close underlying resources, e.g. |
Iterator<Feature> |
iterator()
|
FeatureCollection |
toCollection()
Returns all members of the FeatureResultSet as a FeatureCollection . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachedFeatureResultSet(FeatureCollection fc)
CachedFeatureResultSet
that is backed by the given FeatureCollection
.
fc
- FeatureCollection to back the result setMethod Detail |
---|
public void close()
FeatureResultSet
ResultSet
s.
close
in interface FeatureResultSet
public FeatureCollection toCollection()
FeatureResultSet
FeatureResultSet
as a FeatureCollection
.
NOTE: This method should not be called for very large result sets, as it introduces the overhead of keeping all
created feature instances in memory. The returned collection will contain all Feature
s instances from the
current position in the iteration sequence.
toCollection
in interface FeatureResultSet
null
public Iterator<Feature> iterator()
iterator
in interface Iterable<Feature>
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |