Package ucar.nc2.grib.collection
Class PartitionCollectionMutable
- java.lang.Object
-
- ucar.nc2.grib.collection.GribCollectionMutable
-
- ucar.nc2.grib.collection.PartitionCollectionMutable
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class PartitionCollectionMutable extends GribCollectionMutable
Collection of GribCollections or other PartitionCollections, partitioned by reference time.- Since:
- 12/7/13
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
PartitionCollectionMutable.Partition
class
PartitionCollectionMutable.VariableIndexPartitioned
-
Nested classes/interfaces inherited from class ucar.nc2.grib.collection.GribCollectionMutable
GribCollectionMutable.Dataset, GribCollectionMutable.GroupGC, GribCollectionMutable.Record, GribCollectionMutable.VariableIndex
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
isPartitionOfPartitions
protected org.slf4j.Logger
logger
protected List<PartitionCollectionMutable.Partition>
partitions
-
Fields inherited from class ucar.nc2.grib.collection.GribCollectionMutable
backProcessId, center, config, cust, datasets, dateRange, directory, fileMap, fileSize, genProcessId, genProcessType, indexFilename, indexRaf, indexVersion, isGrib1, lastModified, local, master, masterRuntime, name, orgDirectory, params, subcenter, version
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PartitionCollectionMutable(String name, File directory, FeatureCollectionConfig config, boolean isGrib1, org.slf4j.Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPartition(MCollection dcm)
List<String>
getFilenames()
Use partition names as the file namesIterable<PartitionCollectionMutable.Partition>
getPartitions()
void
showIndex(Formatter f)
-
Methods inherited from class ucar.nc2.grib.collection.GribCollectionMutable
close, getConfig, getDatasets, getDirectory, getFilename, getFiles, getLocation, getName, makeGroup, setFileMap, showLocation, toString
-
-
-
-
Field Detail
-
logger
protected final org.slf4j.Logger logger
-
partitions
protected List<PartitionCollectionMutable.Partition> partitions
-
isPartitionOfPartitions
protected boolean isPartitionOfPartitions
-
-
Constructor Detail
-
PartitionCollectionMutable
protected PartitionCollectionMutable(String name, File directory, FeatureCollectionConfig config, boolean isGrib1, org.slf4j.Logger logger)
-
-
Method Detail
-
getFilenames
public List<String> getFilenames()
Use partition names as the file names- Overrides:
getFilenames
in classGribCollectionMutable
- Returns:
- list of filename.
-
addPartition
public void addPartition(MCollection dcm)
-
getPartitions
public Iterable<PartitionCollectionMutable.Partition> getPartitions()
-
showIndex
public void showIndex(Formatter f)
- Overrides:
showIndex
in classGribCollectionMutable
-
-