Package ucar.nc2.ft.point.remote
Class PointCollectionStreamRemote
- java.lang.Object
-
- ucar.nc2.ft.point.DsgCollectionImpl
-
- ucar.nc2.ft.point.PointCollectionImpl
-
- ucar.nc2.ft.point.remote.PointCollectionStreamAbstract
-
- ucar.nc2.ft.point.remote.PointCollectionStreamRemote
-
- All Implemented Interfaces:
Iterable<PointFeature>
,DsgFeatureCollection
,QueryMaker
,PointFeatureCollection
public class PointCollectionStreamRemote extends PointCollectionStreamAbstract implements QueryMaker
Creates aPointFeatureCollection
by reading point stream data from a CDM Remote endpoint.- Since:
- 2014/10/02
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ucar.nc2.ft.point.PointCollectionImpl
PointCollectionImpl.PointCollectionSubset
-
-
Field Summary
-
Fields inherited from class ucar.nc2.ft.point.PointCollectionImpl
localIterator
-
-
Constructor Summary
Constructors Constructor Description PointCollectionStreamRemote(String uri, CalendarDateUnit timeUnit, String altUnits, QueryMaker queryMaker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
getInputStream()
Returns the input stream from which to read point data.String
makeQuery()
PointFeatureCollection
subset(LatLonRect boundingBox, CalendarDateRange dateRange)
Subset this collection by boundingBox and/or dateRange-
Methods inherited from class ucar.nc2.ft.point.remote.PointCollectionStreamAbstract
getPointFeatureIterator
-
Methods inherited from class ucar.nc2.ft.point.PointCollectionImpl
finish, getCollectionFeatureType, hasNext, iterator, next, resetIteration
-
Methods inherited from class ucar.nc2.ft.point.DsgCollectionImpl
getAltName, getAltUnits, getBoundingBox, getCalendarDateRange, getCoordinateVariables, getExtraVariables, getInfo, getName, getNobs, getTimeName, getTimeUnit, size
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ucar.nc2.ft.DsgFeatureCollection
getAltName, getAltUnits, getBoundingBox, getCalendarDateRange, getCoordinateVariables, getExtraVariables, getName, getTimeName, getTimeUnit, size
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
PointCollectionStreamRemote
public PointCollectionStreamRemote(String uri, CalendarDateUnit timeUnit, String altUnits, QueryMaker queryMaker)
-
-
Method Detail
-
makeQuery
public String makeQuery()
- Specified by:
makeQuery
in interfaceQueryMaker
-
getInputStream
public InputStream getInputStream() throws IOException
Description copied from class:PointCollectionStreamAbstract
Returns the input stream from which to read point data.- Specified by:
getInputStream
in classPointCollectionStreamAbstract
- Returns:
- the input stream from which to read point data.
- Throws:
IOException
- if an I/O error occurs.
-
subset
public PointFeatureCollection subset(LatLonRect boundingBox, CalendarDateRange dateRange)
Description copied from interface:PointFeatureCollection
Subset this collection by boundingBox and/or dateRange- Specified by:
subset
in interfacePointFeatureCollection
- Overrides:
subset
in classPointCollectionImpl
- Parameters:
boundingBox
- only points in this lat/lon bounding box. may be null.dateRange
- only points in this date range. may be null.- Returns:
- subsetted collection, may be null if empty
-
-