|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.feature.persistence.query.MemoryFeatureResultSet
public class MemoryFeatureResultSet
FeatureResultSet that stores all features in memory.
| Constructor Summary | |
|---|---|
MemoryFeatureResultSet(FeatureCollection fc)
Creates a new MemoryFeatureResultSet that is backed by the given FeatureCollection. |
|
| Method Summary | |
|---|---|
void |
close()
Must be invoked after using to close underlying resources, e.g. |
java.util.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 MemoryFeatureResultSet(FeatureCollection fc)
MemoryFeatureResultSet that is backed by the given FeatureCollection.
fc - FeatureCollection to back the result set| Method Detail |
|---|
public void close()
FeatureResultSetResultSets.
close in interface FeatureResultSetpublic FeatureCollection toCollection()
FeatureResultSetFeatureResultSet 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 Features instances from the
current position in the iteration sequence.
toCollection in interface FeatureResultSetnullpublic java.util.Iterator<Feature> iterator()
iterator in interface java.lang.Iterable<Feature>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||