public class GribCollectionMutable
extends java.lang.Object
implements java.io.Closeable
Modifier and Type | Class and Description |
---|---|
class |
GribCollectionMutable.Dataset |
class |
GribCollectionMutable.GroupGC |
static class |
GribCollectionMutable.Record |
class |
GribCollectionMutable.VariableIndex |
Modifier and Type | Field and Description |
---|---|
int |
backProcessId |
int |
center |
protected FeatureCollectionConfig |
config |
static int |
countGC |
protected GribTables |
cust |
protected java.util.List<GribCollectionMutable.Dataset> |
datasets |
protected java.io.File |
directory |
protected java.util.Map<java.lang.Integer,MFile> |
fileMap |
protected long |
fileSize |
int |
genProcessId |
int |
genProcessType |
protected java.util.List<GribHorizCoordSystem> |
horizCS |
protected java.lang.String |
indexFilename |
protected RandomAccessFile |
indexRaf |
protected int |
indexVersion |
protected boolean |
isGrib1 |
protected long |
lastModified |
int |
local |
int |
master |
protected CoordinateRuntime |
masterRuntime |
static long |
MISSING_RECORD |
protected java.lang.String |
name |
protected java.lang.String |
orgDirectory |
java.util.List<Parameter> |
params |
int |
subcenter |
int |
version |
Modifier | Constructor and Description |
---|---|
protected |
GribCollectionMutable(java.lang.String name,
java.io.File directory,
FeatureCollectionConfig config,
boolean isGrib1) |
Modifier and Type | Method and Description |
---|---|
void |
addHorizCoordSystem(GdsHorizCoordSys hcs,
byte[] rawGds,
java.lang.Object gdsHashObject,
int predefinedGridDefinition) |
void |
close() |
protected void |
copyInfo(GribCollectionMutable from) |
int |
findHorizCS(GribHorizCoordSystem hcs) |
FeatureCollectionConfig |
getConfig() |
GribCollectionMutable.Dataset |
getDatasetCanonical() |
java.util.List<GribCollectionMutable.Dataset> |
getDatasets() |
java.io.File |
getDirectory() |
java.lang.String |
getFilename(int fileno) |
java.util.List<java.lang.String> |
getFilenames()
The files that comprise the collection.
|
java.util.Collection<MFile> |
getFiles() |
GribHorizCoordSystem |
getHorizCS(int index) |
java.io.File |
getIndexParentFile() |
java.lang.String |
getLocation() |
java.lang.String |
getName() |
GribCollectionMutable.Dataset |
makeDataset(GribCollectionImmutable.Type type) |
GribCollectionMutable.GroupGC |
makeGroup() |
protected void |
makeHorizCS() |
static java.lang.String |
makeName(java.lang.String collectionName,
CalendarDate runtime) |
GribCollectionMutable.VariableIndex |
makeVariableIndex(GribCollectionMutable.GroupGC g,
GribTables customizer,
int discipline,
int center,
int subcenter,
byte[] rawPds,
java.util.List<java.lang.Integer> index,
long recordsPos,
int recordsLen) |
void |
setFileMap(java.util.Map<java.lang.Integer,MFile> fileMap) |
java.io.File |
setOrgDirectory(java.lang.String orgDirectory) |
void |
showIndex(java.util.Formatter f) |
java.lang.String |
showLocation() |
java.lang.String |
toString() |
public static final long MISSING_RECORD
protected java.lang.String name
protected FeatureCollectionConfig config
protected boolean isGrib1
protected java.io.File directory
protected java.lang.String orgDirectory
public int version
public int center
public int subcenter
public int master
public int local
public int genProcessType
public int genProcessId
public int backProcessId
public java.util.List<Parameter> params
protected java.util.Map<java.lang.Integer,MFile> fileMap
protected java.util.List<GribCollectionMutable.Dataset> datasets
protected java.util.List<GribHorizCoordSystem> horizCS
protected CoordinateRuntime masterRuntime
protected GribTables cust
protected int indexVersion
protected RandomAccessFile indexRaf
protected java.lang.String indexFilename
protected long lastModified
protected long fileSize
public static int countGC
protected GribCollectionMutable(java.lang.String name, java.io.File directory, FeatureCollectionConfig config, boolean isGrib1)
public static java.lang.String makeName(java.lang.String collectionName, CalendarDate runtime)
protected void copyInfo(GribCollectionMutable from)
public java.lang.String getName()
public java.io.File getDirectory()
public java.lang.String getLocation()
public java.util.Collection<MFile> getFiles()
public FeatureCollectionConfig getConfig()
public java.util.List<java.lang.String> getFilenames()
public java.io.File getIndexParentFile()
public java.lang.String getFilename(int fileno)
public java.util.List<GribCollectionMutable.Dataset> getDatasets()
public GribCollectionMutable.Dataset makeDataset(GribCollectionImmutable.Type type)
public GribCollectionMutable.Dataset getDatasetCanonical()
public GribHorizCoordSystem getHorizCS(int index)
protected void makeHorizCS()
public int findHorizCS(GribHorizCoordSystem hcs)
public void addHorizCoordSystem(GdsHorizCoordSys hcs, byte[] rawGds, java.lang.Object gdsHashObject, int predefinedGridDefinition)
public void setFileMap(java.util.Map<java.lang.Integer,MFile> fileMap)
public java.io.File setOrgDirectory(java.lang.String orgDirectory)
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public GribCollectionMutable.VariableIndex makeVariableIndex(GribCollectionMutable.GroupGC g, GribTables customizer, int discipline, int center, int subcenter, byte[] rawPds, java.util.List<java.lang.Integer> index, long recordsPos, int recordsLen)
public void showIndex(java.util.Formatter f)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String showLocation()
public GribCollectionMutable.GroupGC makeGroup()