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