public abstract class GribIndex extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
debug |
static String |
GBX9_IDX |
| Constructor and Description |
|---|
GribIndex() |
| Modifier and Type | Method and Description |
|---|---|
static CollectionManager.ChangeChecker |
getChangeChecker() |
abstract int |
getNRecords()
The number of records in the index.
|
static GribCollection |
makeGribCollectionFromSingleFile(boolean isGrib1,
RandomAccessFile dataRaf,
FeatureCollectionConfig.GribConfig config,
CollectionManager.Force force,
org.slf4j.Logger logger)
Create a gbx9 and ncx index and a grib collection from a single grib1 or grib2 file.
|
abstract boolean |
makeIndex(String location,
RandomAccessFile dataRaf)
Make the gbx9 index file.
|
abstract boolean |
readIndex(String location,
long dataModified,
CollectionManager.Force force)
Read the gbx9 index file.
|
static GribIndex |
readOrCreateIndexFromSingleFile(boolean isGrib1,
boolean createCollectionIndex,
MFile mfile,
FeatureCollectionConfig.GribConfig config,
CollectionManager.Force force,
org.slf4j.Logger logger)
Create a gbx9 and ncx index from a single grib1 or grib2 file.
|
public static final String GBX9_IDX
public static final boolean debug
public static CollectionManager.ChangeChecker getChangeChecker()
public static GribCollection makeGribCollectionFromSingleFile(boolean isGrib1, RandomAccessFile dataRaf, FeatureCollectionConfig.GribConfig config, CollectionManager.Force force, org.slf4j.Logger logger) throws IOException
isGrib1 - true if grib1dataRaf - the grib file already openconfig - special configurationforce - force writing indexIOException - on io errorpublic static GribIndex readOrCreateIndexFromSingleFile(boolean isGrib1, boolean createCollectionIndex, MFile mfile, FeatureCollectionConfig.GribConfig config, CollectionManager.Force force, org.slf4j.Logger logger) throws IOException
isGrib1 - true if grib1createCollectionIndex - true is you also want the ncx file to be createdmfile - the grib fileconfig - special configurationforce - force writing indexIOException - on io errorpublic abstract boolean readIndex(String location, long dataModified, CollectionManager.Force force) throws IOException
location - location of the data filedataModified - last modified date of the data fileforce - always, test or nocheckIOException - on io errorpublic abstract boolean makeIndex(String location, RandomAccessFile dataRaf) throws IOException
location - location of the data filedataRaf - already opened data raf; may be nullIOException - on io errorpublic abstract int getNRecords()
Copyright © 1999–2013 UCAR/Unidata. All rights reserved.