@Immutable public abstract class GribCollectionImmutable extends Object implements Closeable, ucar.nc2.util.cache.FileCacheable
possible we could use the Proto equivalents, and eliminate GribCollectionMutable ?
| Modifier and Type | Class and Description |
|---|---|
class |
GribCollectionImmutable.Dataset |
class |
GribCollectionImmutable.GroupGC |
static class |
GribCollectionImmutable.Info |
static class |
GribCollectionImmutable.Record |
static class |
GribCollectionImmutable.Type |
class |
GribCollectionImmutable.VariableIndex |
| Modifier and Type | Field and Description |
|---|---|
protected thredds.featurecollection.FeatureCollectionConfig |
config |
static int |
countGC |
protected GribTables |
cust |
protected List<GribCollectionImmutable.Dataset> |
datasets |
protected ucar.nc2.time.CalendarDateRange |
dateRange |
protected File |
directory |
protected Map<Integer,thredds.inventory.MFile> |
fileMap |
protected String |
indexFilename |
protected GribCollectionImmutable.Info |
info |
boolean |
isGrib1 |
protected CoordinateRuntime |
masterRuntime |
protected String |
name |
protected ucar.nc2.util.cache.FileCacheIF |
objCache |
public static int countGC
protected final String name
protected final File directory
protected final thredds.featurecollection.FeatureCollectionConfig config
public final boolean isGrib1
protected final GribCollectionImmutable.Info info
protected final List<GribCollectionImmutable.Dataset> datasets
protected final CoordinateRuntime masterRuntime
protected final ucar.nc2.time.CalendarDateRange dateRange
protected final GribTables cust
protected final String indexFilename
protected ucar.nc2.util.cache.FileCacheIF objCache
protected GribCollectionImmutable.VariableIndex makeVariableIndex(GribCollectionImmutable.GroupGC group, GribCollectionMutable.VariableIndex mutableVar)
public List<GribCollectionImmutable.Dataset> getDatasets()
public GribCollectionImmutable.Dataset getDataset(int idx)
public GribCollectionImmutable.Dataset getDatasetCanonical()
public String getName()
public File getDirectory()
public CoordinateRuntime getMasterRuntime()
public ucar.nc2.time.CalendarDate getMasterFirstDate()
public int getVersion()
public int getCenter()
public int getSubcenter()
public int getMaster()
public int getLocal()
public int getGenProcessType()
public int getGenProcessId()
public int getBackProcessId()
public ucar.nc2.AttributeContainerHelper getGlobalAttributes()
public abstract void addGlobalAttributes(ucar.nc2.AttributeContainer result)
public abstract void addVariableAttributes(ucar.nc2.AttributeContainer v,
GribCollectionImmutable.VariableIndex vindex)
protected abstract String makeVariableId(GribCollectionImmutable.VariableIndex v)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ucar.nc2.util.cache.FileCacheableIOExceptionpublic void release()
throws IOException
release in interface ucar.nc2.util.cache.FileCacheableIOExceptionpublic void reacquire()
throws IOException
reacquire in interface ucar.nc2.util.cache.FileCacheableIOExceptionpublic String getLocation()
getLocation in interface ucar.nc2.util.cache.FileCacheablepublic long getLastModified()
getLastModified in interface ucar.nc2.util.cache.FileCacheablepublic void setFileCache(ucar.nc2.util.cache.FileCacheIF fileCache)
setFileCache in interface ucar.nc2.util.cache.FileCacheablepublic void showStatus(Formatter f)
public void showIndexFile(Formatter f)
public void showIndex(Formatter f)
public long getIndexFileSize()
public thredds.inventory.MFile getFile(int fileno)
public String getFilename(int fileno)
public String getFirstFilename()
public Collection<thredds.inventory.MFile> getFiles()
public thredds.inventory.MFile findMFileByName(String filename)
public ucar.unidata.io.RandomAccessFile getDataRaf(int fileno)
throws IOException
IOExceptionpublic String getDataRafFilename(int fileno) throws IOException
IOExceptionpublic abstract ucar.nc2.dataset.NetcdfDataset getNetcdfDataset(GribCollectionImmutable.Dataset ds, GribCollectionImmutable.GroupGC group, String filename, thredds.featurecollection.FeatureCollectionConfig gribConfig, Formatter errlog, org.slf4j.Logger logger) throws IOException
IOExceptionpublic abstract ucar.nc2.dt.grid.GridDataset getGridDataset(GribCollectionImmutable.Dataset ds, GribCollectionImmutable.GroupGC group, String filename, thredds.featurecollection.FeatureCollectionConfig gribConfig, Formatter errlog, org.slf4j.Logger logger) throws IOException
IOExceptionpublic abstract ucar.nc2.ft2.coverage.CoverageCollection getGridCoverage(GribCollectionImmutable.Dataset ds, GribCollectionImmutable.GroupGC group, String filename, thredds.featurecollection.FeatureCollectionConfig gribConfig, Formatter errlog, org.slf4j.Logger logger) throws IOException
IOException