@Immutable public abstract class GribCollectionImmutable extends Object implements Closeable, ucar.nc2.internal.cache.FileCacheable
Could use the Proto equivalents, and eliminate GribCollectionMutable ?
| Modifier and Type | Class and Description |
|---|---|
class |
GribCollectionImmutable.Dataset |
class |
GribCollectionImmutable.GroupGC |
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 ucar.nc2.grib.collection.GribCollectionImmutable.Info |
info |
boolean |
isGrib1 |
protected CoordinateRuntime |
masterRuntime |
protected String |
name |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addGlobalAttributes(ucar.nc2.AttributeContainerMutable result) |
abstract void |
addVariableAttributes(ucar.nc2.AttributeContainerMutable v,
GribCollectionImmutable.VariableIndex vindex) |
void |
close() |
thredds.inventory.MFile |
findMFileByName(String filename) |
int |
getBackProcessId() |
int |
getCenter() |
GribCollectionImmutable.Dataset |
getDataset(int idx) |
GribCollectionImmutable.Dataset |
getDatasetCanonical() |
List<GribCollectionImmutable.Dataset> |
getDatasets() |
File |
getDirectory() |
thredds.inventory.MFile |
getFile(int fileno) |
String |
getFilename(int fileno) |
Collection<thredds.inventory.MFile> |
getFiles() |
int |
getGenProcessId() |
int |
getGenProcessType() |
ucar.nc2.AttributeContainer |
getGlobalAttributes() |
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)
Deprecated.
FeatureDatasets will move to legacy in ver7, this method will not be available.
|
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)
Deprecated.
FeatureDatasets will move to legacy in ver7, this method will not be available.
|
long |
getIndexFileSize() |
long |
getLastModified() |
int |
getLocal() |
String |
getLocation() |
int |
getMaster() |
ucar.nc2.time.CalendarDate |
getMasterFirstDate() |
CoordinateRuntime |
getMasterRuntime() |
String |
getName() |
abstract ucar.nc2.dataset.NetcdfDataset |
getNetcdfDataset(GribCollectionImmutable.Dataset ds,
GribCollectionImmutable.GroupGC group,
String filename,
thredds.featurecollection.FeatureCollectionConfig gribConfig,
Formatter errlog,
org.slf4j.Logger logger) |
int |
getSubcenter() |
int |
getVersion() |
protected abstract String |
makeVariableId(GribCollectionImmutable.VariableIndex v) |
protected GribCollectionImmutable.VariableIndex |
makeVariableIndex(GribCollectionImmutable.GroupGC group,
GribCollectionMutable.VariableIndex mutableVar) |
void |
reacquire()
Deprecated.
do not use.
|
void |
release()
Deprecated.
do not use.
|
void |
setFileCache(ucar.nc2.internal.cache.FileCacheIF fileCache)
Deprecated.
do not use
|
void |
showIndex(Formatter f) |
void |
showStatus(Formatter f) |
void |
showStatusSummary(Formatter f,
String type) |
String |
toString() |
public static int countGC
protected final String name
protected final File directory
protected final thredds.featurecollection.FeatureCollectionConfig config
public final boolean isGrib1
protected final ucar.nc2.grib.collection.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 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.AttributeContainer getGlobalAttributes()
public abstract void addGlobalAttributes(ucar.nc2.AttributeContainerMutable result)
public abstract void addVariableAttributes(ucar.nc2.AttributeContainerMutable 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.internal.cache.FileCacheableIOException@Deprecated public void release()
release in interface ucar.nc2.internal.cache.FileCacheable@Deprecated public void reacquire()
reacquire in interface ucar.nc2.internal.cache.FileCacheablepublic String getLocation()
getLocation in interface ucar.nc2.internal.cache.FileCacheablepublic long getLastModified()
getLastModified in interface ucar.nc2.internal.cache.FileCacheable@Deprecated public void setFileCache(ucar.nc2.internal.cache.FileCacheIF fileCache)
setFileCache in interface ucar.nc2.internal.cache.FileCacheablepublic void showStatus(Formatter f)
public void showIndex(Formatter f)
public long getIndexFileSize()
public thredds.inventory.MFile getFile(int fileno)
public String getFilename(int fileno)
public Collection<thredds.inventory.MFile> getFiles()
@Nullable public 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
IOException@Deprecated @Nullable public 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
IOException@Deprecated @Nullable public 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