|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.feature.stream.ThreadedFeatureInputStream
public class ThreadedFeatureInputStream
FeatureInputStream that uses a separate thread to keep an internal queue of features filled.
| Constructor Summary | |
|---|---|
ThreadedFeatureInputStream(FeatureInputStream rs,
int maxFill,
int minFill)
Creates a new ThreadedFeatureInputStream based on the given FeatureInputStream that uses the
given thread to keep the internal queue of results filled. |
|
| Method Summary | |
|---|---|
void |
close()
Must be invoked after using to close underlying resources, e.g. |
int |
count()
Counts the remaining features in the stream (and consumes them) and closes it. |
Iterator<Feature> |
iterator()
|
static void |
shutdown()
|
FeatureCollection |
toCollection()
Returns all members of the FeatureInputStream as a FeatureCollection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadedFeatureInputStream(FeatureInputStream rs,
int maxFill,
int minFill)
ThreadedFeatureInputStream based on the given FeatureInputStream that uses the
given thread to keep the internal queue of results filled.
rs - maxFill - minFill - | Method Detail |
|---|
public void close()
FeatureInputStreamResultSets.
close in interface FeatureInputStreampublic FeatureCollection toCollection()
FeatureInputStreamFeatureInputStream 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 FeatureInputStreamnullpublic Iterator<Feature> iterator()
iterator in interface Iterable<Feature>public int count()
FeatureInputStream
count in interface FeatureInputStreampublic static void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||