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.
|
abstract boolean |
makeIndex(String location,
RandomAccessFile dataRaf)
Make the gbx9 index file.
|
static GribIndex |
open(boolean isGrib1,
MFile mfile) |
abstract boolean |
readIndex(String location,
long dataModified,
CollectionUpdateType force)
Read the gbx9 index file.
|
static GribIndex |
readOrCreateIndexFromSingleFile(boolean isGrib1,
MFile mfile,
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 CollectionManager.ChangeChecker getChangeChecker()
public static GribIndex open(boolean isGrib1, MFile mfile) throws IOException
IOException
public static GribIndex readOrCreateIndexFromSingleFile(boolean isGrib1, MFile mfile, 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, CollectionUpdateType force) throws IOException
location
- location of the data filedataModified
- last modified date of the data fileforce
- rewrite? always, test, nocheck, neverIOException
- on io errorpublic abstract boolean makeIndex(String location, 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()
Copyright © 1999–2018 UCAR/Unidata. All rights reserved.