ucar.nc2.ncml
Class AggregationTiled
java.lang.Object
ucar.nc2.ncml.Aggregation
ucar.nc2.ncml.AggregationTiled
- All Implemented Interfaces:
- ProxyReader
public class AggregationTiled
- extends Aggregation
Tiled Aggregation.
- Since:
- Aug 16, 2007
- Author:
- caron
| Fields inherited from class ucar.nc2.ncml.Aggregation |
cacheDirty, datasetManager, datasets, dateFormatMark, debugDateParse, debugOpenFile, debugProxy, debugRead, debugSyncDetail, dimName, diskCache2, enhance, executor, explicitDatasets, formatter, isDate, logger, ncDataset, spiObject, timeUnitsChange, type, typicalDatasetMode |
|
Method Summary |
protected void |
buildDataset(CancelTask cancelTask)
Call this to build the dataset objects |
protected ucar.nc2.ncml.Aggregation.Dataset |
makeDataset(java.lang.String cacheName,
java.lang.String location,
java.lang.String ncoordS,
java.lang.String coordValueS,
java.lang.String sectionSpec,
java.util.EnumSet<NetcdfDataset.Enhance> enhance,
FileFactory reader)
Dataset factory, so subclasses can override |
Array |
read(Variable mainv,
CancelTask cancelTask)
Read an aggregation variable: A variable whose data spans multiple files. |
Array |
read(Variable mainv,
Section wantSection,
CancelTask cancelTask)
Read a section of an aggregation variable. |
protected void |
rebuildDataset()
Call this when rescan has found changed datasets |
| Methods inherited from class ucar.nc2.ncml.Aggregation |
addDataset, addDatasetScan, addExplicitDataset, close, closeDatasets, findVariable, finish, getDatasets, getDimensionName, getLocation, getType, getTypicalDataset, makeDatasets, persistRead, persistWrite, setDatasetAcquireProxy, setExecutor, setPersistenceCache, setTypicalDatasetMode, sync, syncExtend |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AggregationTiled
public AggregationTiled(NetcdfDataset ncd,
java.lang.String dimName,
java.lang.String recheckS)
buildDataset
protected void buildDataset(CancelTask cancelTask)
throws java.io.IOException
- Description copied from class:
Aggregation
- Call this to build the dataset objects
- Specified by:
buildDataset in class Aggregation
- Parameters:
cancelTask - maybe cancel
- Throws:
java.io.IOException - on read error
rebuildDataset
protected void rebuildDataset()
throws java.io.IOException
- Description copied from class:
Aggregation
- Call this when rescan has found changed datasets
- Specified by:
rebuildDataset in class Aggregation
- Throws:
java.io.IOException - on read error
read
public Array read(Variable mainv,
CancelTask cancelTask)
throws java.io.IOException
- Description copied from class:
Aggregation
- Read an aggregation variable: A variable whose data spans multiple files.
- Specified by:
read in interface ProxyReader- Specified by:
read in class Aggregation
- Parameters:
mainv - the aggregation variablecancelTask - allow the user to cancel
- Returns:
- the data array
- Throws:
java.io.IOException - on error
read
public Array read(Variable mainv,
Section wantSection,
CancelTask cancelTask)
throws java.io.IOException
- Description copied from class:
Aggregation
- Read a section of an aggregation variable.
- Specified by:
read in interface ProxyReader- Specified by:
read in class Aggregation
- Parameters:
mainv - the aggregation variablewantSection - read just this section of the data, refers to aggregated Variable's section.cancelTask - allow the user to cancel
- Returns:
- the data array section
- Throws:
java.io.IOException - on error
makeDataset
protected ucar.nc2.ncml.Aggregation.Dataset makeDataset(java.lang.String cacheName,
java.lang.String location,
java.lang.String ncoordS,
java.lang.String coordValueS,
java.lang.String sectionSpec,
java.util.EnumSet<NetcdfDataset.Enhance> enhance,
FileFactory reader)
- Description copied from class:
Aggregation
- Dataset factory, so subclasses can override
- Overrides:
makeDataset in class Aggregation
- Parameters:
cacheName - a unique name to use for cachinglocation - attribute "location" on the netcdf elementncoordS - attribute "ncoords" on the netcdf elementcoordValueS - attribute "coordValue" on the netcdf elementsectionSpec - attribute "sectionSpec" on the netcdf elementenhance - open dataset in enhance modereader - factory for reading this netcdf dataset
- Returns:
- a Aggregation.Dataset