|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.ncml.Aggregation
ucar.nc2.ncml.AggregationOuterDimension
public abstract class AggregationOuterDimension
Superclass for Aggregations on the outer dimension: joinNew, joinExisting, Fmrc, FmrcSingle
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.nc2.ncml.Aggregation |
|---|
Aggregation.Dataset, Aggregation.DatasetProxyReader, Aggregation.Type, Aggregation.TypicalDataset |
| Field Summary | |
|---|---|
protected java.util.List<java.lang.String> |
aggVarNames
|
protected java.util.List<VariableDS> |
aggVars
|
protected java.util.List<ucar.nc2.ncml.AggregationOuterDimension.CacheVar> |
cacheList
|
protected static boolean |
debugCache
|
protected static boolean |
debugInvocation
|
static int |
invocation
|
protected boolean |
timeUnitsChange
|
| Fields inherited from class ucar.nc2.ncml.Aggregation |
|---|
cacheDirty, datasetManager, datasets, dateFormatMark, dateFormatter, debug, debugDateParse, debugOpenFile, debugProxy, debugRead, debugSyncDetail, dimName, diskCache2, executor, explicitDatasets, isDate, logger, ncDataset, spiObject, type, typicalDatasetMode |
| Constructor Summary | |
|---|---|
protected |
AggregationOuterDimension(NetcdfDataset ncd,
java.lang.String dimName,
Aggregation.Type type,
java.lang.String recheckS)
Create an Aggregation for the given NetcdfDataset. |
| Method Summary | |
|---|---|
void |
addVariable(java.lang.String varName)
Add a name for a variableAgg element |
protected void |
buildCoords(CancelTask cancelTask)
|
void |
detail(java.util.Formatter f)
|
void |
getDetailInfo(java.util.Formatter f)
|
protected int |
getTotalCoords()
|
static void |
main(java.lang.String[] args)
|
protected Aggregation.Dataset |
makeDataset(CrawlableDataset dset)
|
protected Aggregation.Dataset |
makeDataset(java.lang.String cacheName,
java.lang.String location,
java.lang.String id,
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 |
protected void |
promoteGlobalAttributes(ucar.nc2.ncml.AggregationOuterDimension.DatasetOuterDimension typicalDataset)
|
Array |
read(Variable mainv,
CancelTask cancelTask)
Read an aggregation variable: A variable whose data spans multiple files. |
Array |
read(Variable mainv,
Section section,
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, buildNetcdfDataset, close, closeDatasets, findVariable, finish, getDatasets, getDimensionName, getFileTypeDescription, getFileTypeId, getLocation, getType, getTypicalDataset, makeDatasets, persistRead, persistWrite, setDatasetAcquireProxy, setExecutor, setModifications, setPersistenceCache, setTypicalDatasetMode, sync, syncExtend |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static boolean debugCache
protected static boolean debugInvocation
public static int invocation
protected java.util.List<java.lang.String> aggVarNames
protected java.util.List<VariableDS> aggVars
protected java.util.List<ucar.nc2.ncml.AggregationOuterDimension.CacheVar> cacheList
protected boolean timeUnitsChange
| Constructor Detail |
|---|
protected AggregationOuterDimension(NetcdfDataset ncd,
java.lang.String dimName,
Aggregation.Type type,
java.lang.String recheckS)
ncd - Aggregation belongs to this NetcdfDatasetdimName - the aggregation dimension nametype - the Aggregation.TyperecheckS - how often to check if files have changes| Method Detail |
|---|
public void addVariable(java.lang.String varName)
varName - name of agg variablepublic void getDetailInfo(java.util.Formatter f)
getDetailInfo in class Aggregation
protected void buildCoords(CancelTask cancelTask)
throws java.io.IOException
java.io.IOExceptionprotected int getTotalCoords()
protected void promoteGlobalAttributes(ucar.nc2.ncml.AggregationOuterDimension.DatasetOuterDimension typicalDataset)
throws java.io.IOException
java.io.IOException
protected void rebuildDataset()
throws java.io.IOException
Aggregation
rebuildDataset in class Aggregationjava.io.IOException - on read error
public Array read(Variable mainv,
CancelTask cancelTask)
throws java.io.IOException
read in interface ProxyReaderread in class Aggregationmainv - the aggregation variablecancelTask - allow the user to cancel
java.io.IOException
public Array read(Variable mainv,
Section section,
CancelTask cancelTask)
throws java.io.IOException,
InvalidRangeException
read in interface ProxyReaderread in class Aggregationmainv - the aggregation variablecancelTask - allow the user to cancelsection - read just this section of the data, array of Range
java.io.IOException
InvalidRangeException - if section has incorrect rank or shape.
protected Aggregation.Dataset makeDataset(java.lang.String cacheName,
java.lang.String location,
java.lang.String id,
java.lang.String ncoordS,
java.lang.String coordValueS,
java.lang.String sectionSpec,
java.util.EnumSet<NetcdfDataset.Enhance> enhance,
FileFactory reader)
Aggregation
makeDataset in class AggregationcacheName - a unique name to use for cachinglocation - attribute "location" on the netcdf elementid - attribute "id" 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 mode NOT USEDreader - factory for reading this netcdf dataset
protected Aggregation.Dataset makeDataset(CrawlableDataset dset)
makeDataset in class Aggregationpublic void detail(java.util.Formatter f)
detail in class Aggregation
public static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||