deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.feature.persistence.query
Interface FeatureResultSet

All Superinterfaces:
Iterable<Feature>
All Known Implementing Classes:
CachedFeatureResultSet, CombinedResultSet, FilteredFeatureResultSet, IteratorResultSet

public interface FeatureResultSet
extends Iterable<Feature>

Provides access to the results of a Query operation.

Version:
$Revision: 21300 $, $Date: 2009-12-07 22:38:20 +0100 (Mo, 07 Dez 2009) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Method Summary
 void close()
          Must be invoked after using to close underlying resources, e.g.
 FeatureCollection toCollection()
          Returns all members of the FeatureResultSet as a FeatureCollection.
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

close

void close()
Must be invoked after using to close underlying resources, e.g. SQL ResultSets.


toCollection

FeatureCollection toCollection()
Returns all members of the 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 Features instances from the current position in the iteration sequence.

Returns:
members as feature collection, never null

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>