public class AggregationNew extends Aggregation
Aggregation.Type, Aggregation.TypicalDataset| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
aggVarNames |
protected List<VariableDS.Builder> |
aggVars |
protected List<ucar.nc2.internal.ncml.AggregationOuter.CacheVar> |
cacheList |
protected static boolean |
debugCache |
protected static boolean |
debugInvocation |
protected static boolean |
debugStride |
static int |
invocation |
protected boolean |
timeUnitsChange |
cacheDirty, datasetManager, datasets, dateFormatMark, dateFormatter, debug, debugConvert, debugDateParse, debugOpenFile, debugProxy, debugRead, debugSyncDetail, dimName, diskCache2, executor, explicitDatasets, isDate, logger, ncDataset, spiObject, type, typicalDatasetMode| Constructor and Description |
|---|
AggregationNew(NetcdfDataset.Builder ncd,
String dimName,
String recheckS) |
| Modifier and Type | Method and Description |
|---|---|
void |
addVariable(String varName)
Add a name for a variableAgg element
|
protected void |
buildCoords(CancelTask cancelTask) |
protected void |
buildNetcdfDataset(CancelTask cancelTask)
Call this to build the dataset objects in the NetcdfDataset
|
void |
getDetailInfo(Formatter f) |
protected int |
getTotalCoords() |
protected ucar.nc2.internal.ncml.AggDataset |
makeDataset(MFile dset) |
protected ucar.nc2.internal.ncml.AggDataset |
makeDataset(String cacheName,
String location,
String id,
String ncoordS,
String coordValueS,
String sectionSpec,
EnumSet<NetcdfDataset.Enhance> enhance,
FileFactory reader)
Dataset factory, so subclasses can override
|
protected void |
promoteGlobalAttributes(ucar.nc2.internal.ncml.AggDatasetOuter typicalDataset) |
protected void |
readTimeCoordinates(Variable.Builder timeAxis,
CancelTask cancelTask) |
Array |
reallyRead(Variable mainv,
CancelTask cancelTask)
Read an aggregation variable: A variable whose data spans multiple files.
|
Array |
reallyRead(Variable mainv,
Section section,
CancelTask cancelTask)
Read a section of an aggregation variable.
|
addCollection, addDataset, addDatasetScan, addExplicitDataset, build, close, getDatasets, getDimensionName, getFileTypeDescription, getFileTypeId, getLastModified, getLocation, getType, getTypicalDataset, makeDatasets, persistRead, persistWrite, setExecutor, setModifications, setPersistenceCache, setTypicalDatasetMode, syncExtendprotected static boolean debugCache
protected static boolean debugInvocation
protected static boolean debugStride
public static int invocation
protected List<VariableDS.Builder> aggVars
protected List<ucar.nc2.internal.ncml.AggregationOuter.CacheVar> cacheList
protected boolean timeUnitsChange
public AggregationNew(NetcdfDataset.Builder ncd, String dimName, String recheckS)
protected void buildNetcdfDataset(CancelTask cancelTask) throws IOException
AggregationbuildNetcdfDataset in class AggregationcancelTask - maybe cancelIOException - on read errorpublic void addVariable(String varName)
varName - name of agg variableprotected void buildCoords(CancelTask cancelTask) throws IOException
IOExceptionprotected void readTimeCoordinates(Variable.Builder timeAxis, CancelTask cancelTask) throws IOException
IOExceptionprotected int getTotalCoords()
protected void promoteGlobalAttributes(ucar.nc2.internal.ncml.AggDatasetOuter typicalDataset)
throws IOException
IOExceptionpublic Array reallyRead(Variable mainv, Section section, CancelTask cancelTask) throws IOException, InvalidRangeException
reallyRead in interface ProxyReadersection - read just this section of the data, array of Rangemainv - the client VariablecancelTask - user may cancelIOException - on errorInvalidRangeException - if section has incorrect rank or illegal shape.public Array reallyRead(Variable mainv, CancelTask cancelTask) throws IOException
reallyRead in interface ProxyReadermainv - the aggregation variablecancelTask - user may cancelIOException - on errorprotected ucar.nc2.internal.ncml.AggDataset makeDataset(String cacheName, String location, String id, String ncoordS, String coordValueS, String sectionSpec, EnumSet<NetcdfDataset.Enhance> enhance, FileFactory reader)
AggregationmakeDataset 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 datasetprotected ucar.nc2.internal.ncml.AggDataset makeDataset(MFile dset)
makeDataset in class Aggregationpublic void getDetailInfo(Formatter f)
getDetailInfo in interface AggregationIFgetDetailInfo in class Aggregation