Package dev.avelar.mapnik
Class Featureset
java.lang.Object
dev.avelar.mapnik.Featureset
- All Implemented Interfaces:
AutoCloseable,Iterable<Feature>,Iterator<Feature>
public final class Featureset
extends Object
implements Iterable<Feature>, Iterator<Feature>, AutoCloseable
A stream of features from a query. Read it once, in order, then
close() it, ideally with
try-with-resources. Closing while features remain just discards them.-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Method Details
-
toList
Read all remaining features into a list. -
iterator
-
hasNext
public boolean hasNext() -
next
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-