|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PointFeatureIterator
An iterator over PointFeatures. You must complete the iteration or call finish(). Best to put in a try/finally block like:
try { while (iter.hasNext()) process(iter.next()); } finally { iter.finish(); }
Nested Class Summary | |
---|---|
static interface |
PointFeatureIterator.Filter
A filter on PointFeatures |
Method Summary | |
---|---|
void |
finish()
Make sure that the iterator is complete, and recover resources. |
LatLonRect |
getBoundingBox()
Get BoundingBox after iteration is finished, if calcBounds was set true |
int |
getCount()
Get number of points after the iteration is finished, if calcBounds was set true |
DateRange |
getDateRange()
Get DateRange of observation time after iteration is finished, if calcBounds was set true |
boolean |
hasNext()
Check if another PointFeature is available |
PointFeature |
next()
Returns the next PointFeature. |
void |
setBufferSize(int bytes)
Hint to use this much memory in buffering the iteration. |
void |
setCalculateBounds(PointFeatureCollection collection)
If this is set, then the iterator will calculate the bounding box, time range, and size, and make it available through getBoundingBox(), getDateRange(), and getSize(). |
Method Detail |
---|
boolean hasNext() throws IOException
IOException
- on i/o errorPointFeature next() throws IOException
IOException
- on i/o errorvoid finish()
void setBufferSize(int bytes)
bytes
- amount of memory in bytesvoid setCalculateBounds(PointFeatureCollection collection)
collection
- if not null, on complete iteration set the results into the collection.LatLonRect getBoundingBox()
DateRange getDateRange()
int getCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |