|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.ft.point.PointIteratorImpl
public abstract class PointIteratorImpl
Use StructureDataIterator to iterate over members of a Structure, with optional filtering. Subclass must implement makeFeature().
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface ucar.nc2.ft.PointFeatureIterator |
|---|
PointFeatureIterator.Filter |
| Field Summary | |
|---|---|
protected boolean |
calcBB
|
| Constructor Summary | |
|---|---|
protected |
PointIteratorImpl(PointFeatureIterator.Filter filter,
boolean calcBB)
|
protected |
PointIteratorImpl(StructureDataIterator structIter,
PointFeatureIterator.Filter filter,
boolean calcBB)
|
| Method Summary | |
|---|---|
LatLonRect |
getBoundingBox()
Get BoundingBox after iteration is finished, if calcBB was set true |
int |
getCount()
Get number of points returned so far |
DateRange |
getDateRange(DateUnit timeUnit)
Get DateRange of observation time after iteration is finished, if calcBB was set true |
boolean |
hasNext()
Check if another PointFeature is available |
protected abstract PointFeature |
makeFeature(int recnum,
StructureData sdata)
|
PointFeature |
next()
Returns the next PointFeature. |
protected StructureData |
nextStructureData()
|
void |
setBufferSize(int bytes)
Hint to use this much memory in buffering the iteration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean calcBB
| Constructor Detail |
|---|
protected PointIteratorImpl(PointFeatureIterator.Filter filter,
boolean calcBB)
throws java.io.IOException
java.io.IOException
protected PointIteratorImpl(StructureDataIterator structIter,
PointFeatureIterator.Filter filter,
boolean calcBB)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
protected abstract PointFeature makeFeature(int recnum,
StructureData sdata)
throws java.io.IOException
java.io.IOException
public boolean hasNext()
throws java.io.IOException
PointFeatureIterator
hasNext in interface PointFeatureIteratorjava.io.IOException - on i/o error
public PointFeature next()
throws java.io.IOException
PointFeatureIterator
next in interface PointFeatureIteratorjava.io.IOException - on i/o errorpublic void setBufferSize(int bytes)
PointFeatureIterator
setBufferSize in interface PointFeatureIteratorbytes - amount of memory in bytes
protected StructureData nextStructureData()
throws java.io.IOException
java.io.IOExceptionpublic LatLonRect getBoundingBox()
public DateRange getDateRange(DateUnit timeUnit)
timeUnit - to convert times to dates
public int getCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||