public abstract class PointCollectionImpl extends DsgCollectionImpl implements PointFeatureCollection
Modifier and Type | Class and Description |
---|---|
protected static class |
PointCollectionImpl.PointCollectionSubset |
Modifier and Type | Field and Description |
---|---|
protected PointFeatureIterator |
localIterator |
Modifier | Constructor and Description |
---|---|
protected |
PointCollectionImpl(String name,
CalendarDateUnit timeUnit,
String altUnits) |
Modifier and Type | Method and Description |
---|---|
void |
finish()
Make sure that the internal iterator is complete, and recover resources.
|
FeatureType |
getCollectionFeatureType()
All features in this collection have this feature type
|
boolean |
hasNext()
Use the internal iterator to check if there is another PointFeature in the iteration.
|
Iterator<PointFeature> |
iterator() |
PointFeature |
next()
Use the internal iterator to get the next PointFeature in the iteration.
|
void |
resetIteration()
Reset the internal iterator for another iteration over the PointFeatures in this Collection.
|
PointFeatureCollection |
subset(LatLonRect boundingBox,
CalendarDateRange dateRange)
Subset this collection by boundingBox and/or dateRange
|
getAltUnits, getBoundingBox, getCalendarDateRange, getExtraVariables, getInfo, getName, getNobs, getTimeUnit, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPointFeatureIterator
getAltUnits, getBoundingBox, getCalendarDateRange, getExtraVariables, getName, getTimeUnit, size
forEach, spliterator
protected PointFeatureIterator localIterator
protected PointCollectionImpl(String name, CalendarDateUnit timeUnit, String altUnits)
@Nonnull public FeatureType getCollectionFeatureType()
DsgFeatureCollection
getCollectionFeatureType
in interface DsgFeatureCollection
public PointFeatureCollection subset(LatLonRect boundingBox, CalendarDateRange dateRange) throws IOException
PointFeatureCollection
subset
in interface PointFeatureCollection
boundingBox
- only points in this lat/lon bounding box. may be null.dateRange
- only points in this date range. may be null.IOException
- on read errorpublic Iterator<PointFeature> iterator()
iterator
in interface Iterable<PointFeature>
public boolean hasNext() throws IOException
PointFeatureCollection
hasNext
in interface PointFeatureCollection
IOException
- on read errorPointFeatureIterator.hasNext()
public void finish()
PointFeatureCollection
finish
in interface PointFeatureCollection
public PointFeature next() throws IOException
PointFeatureCollection
next
in interface PointFeatureCollection
IOException
- on read errorPointFeatureIterator.next()
public void resetIteration() throws IOException
PointFeatureCollection
resetIteration
in interface PointFeatureCollection
IOException
- on read error