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 thredds.inventory.CollectionManager.ChangeChecker |
getChangeChecker() |
abstract int |
getNRecords()
The number of records in the index.
|
abstract boolean |
makeIndex(String location,
ucar.unidata.io.RandomAccessFile dataRaf)
Make the gbx9 index file.
|
static GribIndex |
open(boolean isGrib1,
thredds.inventory.MFile mfile) |
abstract boolean |
readIndex(String location,
long dataModified,
thredds.inventory.CollectionUpdateType force)
Read the gbx9 index file.
|
static GribIndex |
readOrCreateIndexFromSingleFile(boolean isGrib1,
thredds.inventory.MFile mfile,
thredds.inventory.CollectionUpdateType force,
org.slf4j.Logger logger)
Create a gbx9 index from a single grib1 or grib2 file.
|
public static final String GBX9_IDX
public static final boolean debug
public static thredds.inventory.CollectionManager.ChangeChecker getChangeChecker()
public static GribIndex readOrCreateIndexFromSingleFile(boolean isGrib1, thredds.inventory.MFile mfile, thredds.inventory.CollectionUpdateType force, org.slf4j.Logger logger) throws IOException
isGrib1 - true if grib1mfile - the grib fileforce - force writing indexIOException - on io errorpublic abstract boolean readIndex(String location, long dataModified, thredds.inventory.CollectionUpdateType force)
location - location of the data filedataModified - last modified date of the data fileforce - rewrite? always, test, nocheck, neverpublic abstract boolean makeIndex(String location, ucar.unidata.io.RandomAccessFile dataRaf) throws IOException
location - location of the data filedataRaf - already opened data raf (leave open); if null, makeIndex opens and closes)IOException - on io errorpublic abstract int getNRecords()