public class PartitionCollectionMutable extends GribCollectionMutable
Modifier and Type | Class and Description |
---|---|
class |
PartitionCollectionMutable.Partition |
class |
PartitionCollectionMutable.VariableIndexPartitioned |
GribCollectionMutable.Dataset, GribCollectionMutable.GroupGC, GribCollectionMutable.Record, GribCollectionMutable.VariableIndex
Modifier and Type | Field and Description |
---|---|
protected boolean |
isPartitionOfPartitions |
protected org.slf4j.Logger |
logger |
protected java.util.List<PartitionCollectionMutable.Partition> |
partitions |
backProcessId, center, config, countGC, cust, datasets, directory, fileMap, fileSize, genProcessId, genProcessType, horizCS, indexFilename, indexRaf, indexVersion, isGrib1, lastModified, local, master, masterRuntime, MISSING_RECORD, name, orgDirectory, params, subcenter, version
Modifier | Constructor and Description |
---|---|
protected |
PartitionCollectionMutable(java.lang.String name,
java.io.File directory,
FeatureCollectionConfig config,
boolean isGrib1,
org.slf4j.Logger logger) |
Modifier and Type | Method and Description |
---|---|
void |
addPartition(MCollection dcm) |
PartitionCollectionMutable.Partition |
addPartition(java.lang.String name,
java.lang.String filename,
long lastModified,
long length,
java.lang.String directory,
CalendarDate partitionDate) |
java.util.List<java.lang.String> |
getFilenames()
Use partition names as the file names
|
PartitionCollectionMutable.Partition |
getPartition(int idx) |
java.lang.Iterable<PartitionCollectionMutable.Partition> |
getPartitions() |
int |
getPartitionSize() |
PartitionCollectionMutable.VariableIndexPartitioned |
makeVariableIndexPartitioned(GribCollectionMutable.GroupGC group,
GribCollectionMutable.VariableIndex from,
int nparts)
Create a VariableIndexPartitioned, add it to the given group
|
void |
showIndex(java.util.Formatter f) |
void |
sortPartitions() |
addHorizCoordSystem, close, copyInfo, findHorizCS, getConfig, getDatasetCanonical, getDatasets, getDirectory, getFilename, getFiles, getHorizCS, getIndexParentFile, getLocation, getName, makeDataset, makeGroup, makeHorizCS, makeName, makeVariableIndex, setFileMap, setOrgDirectory, showLocation, toString
protected final org.slf4j.Logger logger
protected java.util.List<PartitionCollectionMutable.Partition> partitions
protected boolean isPartitionOfPartitions
protected PartitionCollectionMutable(java.lang.String name, java.io.File directory, FeatureCollectionConfig config, boolean isGrib1, org.slf4j.Logger logger)
public java.util.List<java.lang.String> getFilenames()
getFilenames
in class GribCollectionMutable
public PartitionCollectionMutable.Partition addPartition(java.lang.String name, java.lang.String filename, long lastModified, long length, java.lang.String directory, CalendarDate partitionDate)
public void addPartition(MCollection dcm)
public void sortPartitions()
public PartitionCollectionMutable.VariableIndexPartitioned makeVariableIndexPartitioned(GribCollectionMutable.GroupGC group, GribCollectionMutable.VariableIndex from, int nparts)
group
- the new VariableIndexPartitioned is in this groupfrom
- copy info from herenparts
- size of partition listpublic java.lang.Iterable<PartitionCollectionMutable.Partition> getPartitions()
public PartitionCollectionMutable.Partition getPartition(int idx)
public int getPartitionSize()
public void showIndex(java.util.Formatter f)
showIndex
in class GribCollectionMutable