Package ucar.nc2.grib.collection
Class PartitionCollectionImmutable
- java.lang.Object
-
- ucar.nc2.grib.collection.GribCollectionImmutable
-
- ucar.nc2.grib.collection.PartitionCollectionImmutable
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,FileCacheable
- Direct Known Subclasses:
Grib1Partition
,Grib2Partition
public abstract class PartitionCollectionImmutable extends GribCollectionImmutable
An Immutable PartitionCollection- Since:
- 11/10/2014
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
PartitionCollectionImmutable.Partition
class
PartitionCollectionImmutable.VariableIndexPartitioned
-
Nested classes/interfaces inherited from class ucar.nc2.grib.collection.GribCollectionImmutable
GribCollectionImmutable.Dataset, GribCollectionImmutable.GroupGC, GribCollectionImmutable.Record, GribCollectionImmutable.Type, GribCollectionImmutable.VariableIndex
-
-
Field Summary
Fields Modifier and Type Field Description static int
countPC
-
Fields inherited from class ucar.nc2.grib.collection.GribCollectionImmutable
config, countGC, cust, datasets, dateRange, directory, fileMap, indexFilename, info, isGrib1, masterRuntime, name
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFilename(int partno, int fileno)
GribCollectionImmutable
getLatestGribCollection(List<String> paths)
PartitionCollectionImmutable.Partition
getPartitionByName(String name)
Iterable<PartitionCollectionImmutable.Partition>
getPartitions()
int
getPartitionSize()
List<PartitionCollectionImmutable.Partition>
getPartitionsSorted()
boolean
isPartitionOfPartitions()
protected GribCollectionImmutable.VariableIndex
makeVariableIndex(GribCollectionImmutable.GroupGC group, GribCollectionMutable.VariableIndex mutableVar)
void
showIndex(Formatter f)
-
Methods inherited from class ucar.nc2.grib.collection.GribCollectionImmutable
addGlobalAttributes, addVariableAttributes, buildNetcdfDataset, close, findMFileByName, getBackProcessId, getCenter, getDataset, getDatasetCanonical, getDatasets, getDirectory, getFile, getFilename, getFiles, getGenProcessId, getGenProcessType, getGlobalAttributes, getGridCoverage, getGridDataset, getIndexFileSize, getLastModified, getLocal, getLocation, getMaster, getMasterFirstDate, getMasterRuntime, getName, getNetcdfDataset, getSubcenter, getVersion, makeVariableId, reacquire, release, setFileCache, showStatus, showStatusSummary, toString
-
-
-
-
Method Detail
-
getLatestGribCollection
public GribCollectionImmutable getLatestGribCollection(List<String> paths) throws IOException
- Throws:
IOException
-
makeVariableIndex
protected GribCollectionImmutable.VariableIndex makeVariableIndex(GribCollectionImmutable.GroupGC group, GribCollectionMutable.VariableIndex mutableVar)
- Overrides:
makeVariableIndex
in classGribCollectionImmutable
-
getPartitions
public Iterable<PartitionCollectionImmutable.Partition> getPartitions()
-
getPartitionByName
@Nullable public PartitionCollectionImmutable.Partition getPartitionByName(String name)
-
isPartitionOfPartitions
public boolean isPartitionOfPartitions()
-
getPartitionSize
public int getPartitionSize()
-
getPartitionsSorted
public List<PartitionCollectionImmutable.Partition> getPartitionsSorted()
-
showIndex
public void showIndex(Formatter f)
- Overrides:
showIndex
in classGribCollectionImmutable
-
getFilename
public String getFilename(int partno, int fileno) throws IOException
- Throws:
IOException
-
-