public interface PointCollection
| Modifier and Type | Method and Description |
|---|---|
java.util.List |
getData()
Deprecated.
Get all data.
|
java.util.List |
getData(CancelTask cancel)
Deprecated.
Get all data, allow user to cancel.
|
java.util.List |
getData(LatLonRect boundingBox)
Deprecated.
Get all data within the specified bounding box.
|
java.util.List |
getData(LatLonRect boundingBox,
CancelTask cancel)
Deprecated.
Get all data within the specified bounding box, allow user to cancel.
|
java.util.List |
getData(LatLonRect boundingBox,
java.util.Date start,
java.util.Date end)
Deprecated.
Get all data within the specified bounding box and date range.
|
java.util.List |
getData(LatLonRect boundingBox,
java.util.Date start,
java.util.Date end,
CancelTask cancel)
Deprecated.
Get all data within the specified bounding box and date range, allow user to cancel.
|
java.lang.Class |
getDataClass()
Deprecated.
The getData() methods return objects of this Class
|
int |
getDataCount()
Deprecated.
Get estimate of number of data records (may not be exact).
|
DataIterator |
getDataIterator(int bufferSize)
Deprecated.
Get an efficient iterator over all the data in the Collection.
|
DateUnit |
getTimeUnits()
Deprecated.
Get the units of Calendar time.
|
java.lang.Class getDataClass()
DateUnit getTimeUnits()
java.util.List getData()
throws java.io.IOException
java.io.IOException - on io erroras a (possibly) more efficient alternativejava.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(LatLonRect boundingBox) throws java.io.IOException
boundingBox - restrict data to this bounding noxjava.io.IOException - on io erroras a (possibly) more efficient alternativejava.util.List getData(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 alternativejava.util.List getData(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 timejava.io.IOException - on io erroras a (possibly) more efficient alternativejava.util.List getData(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 alternativeDataIterator 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