@Immutable public abstract class GribCollectionImmutable extends Object implements Closeable, FileCacheable
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 FeatureCollectionConfig |
config |
static int |
countGC |
protected GribTables |
cust |
protected List<GribCollectionImmutable.Dataset> |
datasets |
protected File |
directory |
protected Map<Integer,MFile> |
fileMap |
protected List<GribHorizCoordSystem> |
horizCS |
protected String |
indexFilename |
protected GribCollectionImmutable.Info |
info |
boolean |
isGrib1 |
protected CoordinateRuntime |
masterRuntime |
protected String |
name |
protected FileCacheIF |
objCache |
public static int countGC
protected final String name
protected final File directory
protected final FeatureCollectionConfig config
public final boolean isGrib1
protected final GribCollectionImmutable.Info info
protected final List<GribCollectionImmutable.Dataset> datasets
protected final List<GribHorizCoordSystem> horizCS
protected final CoordinateRuntime masterRuntime
protected final GribTables cust
protected final String indexFilename
protected 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 getDatasetByTypeName(String name)
public GribCollectionImmutable.Dataset getDatasetCanonical()
public String getName()
public File getDirectory()
public CoordinateRuntime getMasterRuntime()
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 void close() throws IOException
FileCacheable
close
in interface Closeable
close
in interface AutoCloseable
close
in interface FileCacheable
IOException
- on io errorpublic void release() throws IOException
release
in interface FileCacheable
IOException
public void reacquire() throws IOException
reacquire
in interface FileCacheable
IOException
public String getLocation()
FileCacheable
getLocation
in interface FileCacheable
public long getLastModified()
FileCacheable
getLastModified
in interface FileCacheable
public void setFileCache(FileCacheIF fileCache)
FileCacheable
public synchronized void close() throws java.io.IOException { if (cache != null) { if (cache.release(this)) return; } reallyClose(); }
setFileCache
in interface FileCacheable
fileCache
- must store this, use it on close as above.public void showStatus(Formatter f)
public void showIndexFile(Formatter f)
public void showIndex(Formatter f)
public long getIndexFileSize()
public String getFilename(int fileno)
public String getFirstFilename()
public Collection<MFile> getFiles()
public RandomAccessFile getDataRaf(int fileno) throws IOException
IOException
public abstract NetcdfDataset getNetcdfDataset(GribCollectionImmutable.Dataset ds, GribCollectionImmutable.GroupGC group, String filename, FeatureCollectionConfig gribConfig, Formatter errlog, org.slf4j.Logger logger) throws IOException
IOException
public abstract GridDataset getGridDataset(GribCollectionImmutable.Dataset ds, GribCollectionImmutable.GroupGC group, String filename, FeatureCollectionConfig gribConfig, Formatter errlog, org.slf4j.Logger logger) throws IOException
IOException
Copyright © 1999–2017 UCAR/Unidata. All rights reserved.