Package ucar.nc2.internal.ncml
Class AggProxyReader
- java.lang.Object
-
- ucar.nc2.internal.ncml.AggProxyReader
-
- All Implemented Interfaces:
ProxyReader
@Immutable public class AggProxyReader extends Object implements ProxyReader
A Proxy reader for a specific Variable.- Since:
- 10/3/2019.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Variable
findVariable(NetcdfFile ncfile, Variable mainV)
Array
reallyRead(Variable mainV, Section section, CancelTask cancelTask)
Read a section of the data for a Variable.Array
reallyRead(Variable mainV, CancelTask cancelTask)
Read all the data for a Variable.
-
-
-
Method Detail
-
reallyRead
public Array reallyRead(Variable mainV, CancelTask cancelTask) throws IOException
Description copied from interface:ProxyReader
Read all the data for a Variable.- Specified by:
reallyRead
in interfaceProxyReader
- Parameters:
mainV
- the client VariablecancelTask
- user may cancel- Returns:
- memory resident Array containing the data. Will have same shape as the Variable.
- Throws:
IOException
- on error
-
reallyRead
public Array reallyRead(Variable mainV, Section section, CancelTask cancelTask) throws IOException, InvalidRangeException
Description copied from interface:ProxyReader
Read a section of the data for a Variable.- Specified by:
reallyRead
in interfaceProxyReader
- Parameters:
mainV
- the client Variablesection
- the section of data to read.cancelTask
- user may cancel- Returns:
- memory resident Array containing the data. Will have same shape as the Section.
- Throws:
IOException
- on errorInvalidRangeException
- if section has incorrect rank or illegal shape.
-
findVariable
protected Variable findVariable(NetcdfFile ncfile, Variable mainV)
-
-