|
||||||||||
| 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 | |
|---|---|
java.util.List |
getData()
Get all data. |
java.util.List |
getData(CancelTask cancel)
Get all data, allow user to cancel. |
java.util.List |
getData(ucar.unidata.geoloc.LatLonRect boundingBox)
Get all data within the specified bounding box. |
java.util.List |
getData(ucar.unidata.geoloc.LatLonRect boundingBox,
CancelTask cancel)
Get all data within the specified bounding box, allow user to cancel. |
java.util.List |
getData(ucar.unidata.geoloc.LatLonRect boundingBox,
java.util.Date start,
java.util.Date end)
Get all data within the specified bounding box and date range. |
java.util.List |
getData(ucar.unidata.geoloc.LatLonRect boundingBox,
java.util.Date start,
java.util.Date end,
CancelTask cancel)
Get all data within the specified bounding box and date range, allow user to cancel. |
java.lang.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 |
|---|
java.lang.Class getDataClass()
DateUnit getTimeUnits()
java.util.List getData()
throws java.io.IOException
java.io.IOException - on io erroras a (possibly) more efficient alternative
java.util.List getData(CancelTask cancel)
throws java.io.IOException
cancel - allow user to cancel. Implementors should return ASAP.
java.io.IOException - on io erroras a (possibly) more efficient alternativeint getDataCount()
java.util.List getData(ucar.unidata.geoloc.LatLonRect boundingBox)
throws java.io.IOException
boundingBox - restrict data to this bounding nox
java.io.IOException - on io erroras a (possibly) more efficient alternative
java.util.List getData(ucar.unidata.geoloc.LatLonRect boundingBox,
CancelTask cancel)
throws java.io.IOException
boundingBox - restrict data to this bounding noxcancel - allow user to cancel. Implementors should return ASAP.
java.io.IOException - on io erroras a (possibly) more efficient alternative
java.util.List getData(ucar.unidata.geoloc.LatLonRect boundingBox,
java.util.Date start,
java.util.Date end)
throws java.io.IOException
boundingBox - restrict data to this bounding noxstart - restrict data to after this timeend - restrict data to before this time
java.io.IOException - on io erroras a (possibly) more efficient alternative
java.util.List getData(ucar.unidata.geoloc.LatLonRect boundingBox,
java.util.Date start,
java.util.Date end,
CancelTask cancel)
throws java.io.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.
java.io.IOException - on io erroras a (possibly) more efficient alternative
DataIterator getDataIterator(int bufferSize)
throws java.io.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.
java.io.IOException - on io error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||