|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PointCollection
A collection of data at unconnected locations. User can subset by bounding box and by date range. Underlying data can be of any type, but all points have the same type.
Method Summary | |
---|---|
List |
getData()
Get all data. |
List |
getData(CancelTask cancel)
Get all data, allow user to cancel. |
List |
getData(LatLonRect boundingBox)
Get all data within the specified bounding box. |
List |
getData(LatLonRect boundingBox,
CancelTask cancel)
Get all data within the specified bounding box, allow user to cancel. |
List |
getData(LatLonRect boundingBox,
Date start,
Date end)
Get all data within the specified bounding box and date range. |
List |
getData(LatLonRect boundingBox,
Date start,
Date end,
CancelTask cancel)
Get all data within the specified bounding box and date range, allow user to cancel. |
Class |
getDataClass()
The getData() methods return objects of this Class |
int |
getDataCount()
Get estimate of number of data records (may not be exact). |
DataIterator |
getDataIterator(int bufferSize)
Get an efficient iterator over all the data in the Collection. |
DateUnit |
getTimeUnits()
Get the units of Calendar time. |
Method Detail |
---|
Class getDataClass()
DateUnit getTimeUnits()
List getData() throws IOException
IOException
- on io erroras a (possibly) more efficient alternative
List getData(CancelTask cancel) throws IOException
cancel
- allow user to cancel. Implementors should return ASAP.
IOException
- on io erroras a (possibly) more efficient alternative
int getDataCount()
List getData(LatLonRect boundingBox) throws IOException
boundingBox
- restrict data to this bounding nox
IOException
- on io erroras a (possibly) more efficient alternative
List getData(LatLonRect boundingBox, CancelTask cancel) throws IOException
boundingBox
- restrict data to this bounding noxcancel
- allow user to cancel. Implementors should return ASAP.
IOException
- on io erroras a (possibly) more efficient alternative
List getData(LatLonRect boundingBox, Date start, Date end) throws IOException
boundingBox
- restrict data to this bounding noxstart
- restrict data to after this timeend
- restrict data to before this time
IOException
- on io erroras a (possibly) more efficient alternative
List getData(LatLonRect boundingBox, Date start, Date end, CancelTask cancel) throws IOException
boundingBox
- restrict data to this bounding noxstart
- restrict data to after this timeend
- restrict data to before this timecancel
- allow user to cancel. Implementors should return ASAP.
IOException
- on io erroras a (possibly) more efficient alternative
DataIterator getDataIterator(int bufferSize) throws IOException
We dont need a cancelTask, just stop the iteration if the user want to cancel.
Example for point observations: Iterator iter = pointObsDataset.getDataIterator(); while (iter.hasNext()) { PointObsDatatype pobs = (PointObsDatatype) iter.next(); StructureData sdata = pobs.getData(); // process fully }
bufferSize
- if > 0, the internal buffer size, else use the default. Typically 100k - 1M for best results.
IOException
- on io error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |