public abstract class PartitionCollection extends GribCollection
| Modifier and Type | Class and Description |
|---|---|
class |
PartitionCollection.Partition |
class |
PartitionCollection.VariableIndexPartitioned |
GribCollection.Dataset, GribCollection.GroupGC, GribCollection.HorizCoordSys, GribCollection.NetcdfFileGC, GribCollection.Record, GribCollection.Type, GribCollection.VariableIndex| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isPartitionOfPartitions |
protected org.slf4j.Logger |
logger |
protected List<PartitionCollection.Partition> |
partitions |
backProcessId, center, config, cust, datasets, directory, fileMap, genProcessId, genProcessType, horizCS, indexFilename, indexRaf, isGrib1, local, master, masterRuntime, MISSING_RECORD, name, objCache, params, subcenter, version| Modifier | Constructor and Description |
|---|---|
protected |
PartitionCollection(String name,
File directory,
FeatureCollectionConfig config,
boolean isGrib1,
org.slf4j.Logger logger) |
addHorizCoordSystem, close, copyInfo, disableDataRafCache, findDataset, findHorizCS, findMFileByName, getBackProcessId, getCenter, getConfig, getDataRaf, getDataRafCache, getDatasetCanonical, getDatasets, getDirectory, getDiskCache2, getExistingFileOrCache, getFileInCache, getFileInCache, getFilename, getFiles, getGenProcessId, getGenProcessType, getGridDataset, getHorizCS, getIndexFilepathInCache, getLastModified, getLocal, getLocation, getMaster, getMasterRuntime, getName, getNetcdfDataset, getParams, getSubcenter, initDataRafCache, isGrib1, makeDataset, makeGroup, makeHorizCS, makeName, makeNameFromIndexFilename, makeTopIndexFileFromConfig, makeVariableIndex, makeVariableIndex, makeVariableName, setDirectory, setDiskCache2, setFileCache, setFileMap, toStringprotected final org.slf4j.Logger logger
protected List<PartitionCollection.Partition> partitions
protected boolean isPartitionOfPartitions
protected PartitionCollection(String name, File directory, FeatureCollectionConfig config, boolean isGrib1, org.slf4j.Logger logger)
public static void initPartitionCache(int minElementsInMemory,
int maxElementsInMemory,
int period)
public static FileCache getPartitionCache()
public static void disableNetcdfFileCache()
public boolean isPartitionOfPartitions()
public GribCollection.VariableIndex getVariable2DByHash(GribCollection.HorizCoordSys hcs, int cdmHash)
public List<String> getFilenames()
getFilenames in class GribCollectionpublic PartitionCollection.Partition addPartition(String name, String filename, long lastModified, String directory)
public void addPartition(MCollection dcm)
public void sortPartitions()
public PartitionCollection.VariableIndexPartitioned makeVariableIndexPartitioned(GribCollection.GroupGC group, GribCollection.VariableIndex from, int nparts)
group - new VariableIndexPartitioned is in this groupfrom - copy info from herenparts - size of partition listpublic Iterable<PartitionCollection.Partition> getPartitions()
public PartitionCollection.Partition getPartition(int idx)
public PartitionCollection.Partition getPartitionByName(String name)
public int getPartitionSize()
public List<PartitionCollection.Partition> getPartitionsSorted()
public void removePartition(PartitionCollection.Partition p)
public GribCollection getLatestGribCollection(List<String> paths) throws IOException
IOExceptionpublic void showIndex(Formatter f)
showIndex in class GribCollectionpublic RandomAccessFile getRaf(int partno, int fileno) throws IOException
IOExceptionCopyright © 1999–2014 UCAR/Unidata. All rights reserved.