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.
|
abstract boolean |
readIndex(String location,
long dataModified,
CollectionUpdateType force)
Read the gbx9 index file.
|
static GribIndex |
readOrCreateIndexFromSingleFile(boolean isGrib1,
boolean createCollectionIndex,
MFile mfile,
FeatureCollectionConfig.GribConfig config,
CollectionUpdateType 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 GribIndex readOrCreateIndexFromSingleFile(boolean isGrib1, boolean createCollectionIndex, MFile mfile, FeatureCollectionConfig.GribConfig config, CollectionUpdateType 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, 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–2014 UCAR/Unidata. All rights reserved.