HiRISE

HiRISE.HiCat.HiVolume
Class IndexBuilder

java.lang.Object
  extended by HiRISE.HiCat.HiVolume.IndexBuilder

public class IndexBuilder
extends Object


Field Summary
static String DEBUG_CONSTRUCTORS_PROPERTY
           
static String DEBUG_LABEL_PROPERTY
           
static String DEBUG_MAIN_PROPERTY
           
static String DEBUG_QUERY_PROPERTY
           
static String DEBUG_WRITE_PROPERTY
           
static String ID
           
 
Constructor Summary
IndexBuilder(Configuration configuration)
           
IndexBuilder(Configuration configuration, Database database)
          Instantiates the Index_Builder class from a configuration and a database.
IndexBuilder(Configuration configuration, Database database, int recordsPerQuery)
          Alternate constructor that allows the setting of the number of records to return per query.
 
Method Summary
protected  void addPropertyChangeListener(PropertyChangeListener listener)
           
static void main(String[] args)
           
 void writeDTMIndex(Date date)
          Writes a PDS Index file for DTMs and related products.
 void writeEDRIndex(Date date)
          Writes a PDS Index file for EDRs.
 void writeRDRIndex(Date date)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
See Also:
Constant Field Values

DEBUG_CONSTRUCTORS_PROPERTY

public static final String DEBUG_CONSTRUCTORS_PROPERTY
See Also:
Constant Field Values

DEBUG_WRITE_PROPERTY

public static final String DEBUG_WRITE_PROPERTY
See Also:
Constant Field Values

DEBUG_MAIN_PROPERTY

public static final String DEBUG_MAIN_PROPERTY
See Also:
Constant Field Values

DEBUG_LABEL_PROPERTY

public static final String DEBUG_LABEL_PROPERTY
See Also:
Constant Field Values

DEBUG_QUERY_PROPERTY

public static final String DEBUG_QUERY_PROPERTY
See Also:
Constant Field Values
Constructor Detail

IndexBuilder

public IndexBuilder(Configuration configuration)
             throws Database_Exception,
                    Configuration_Exception
Throws:
Database_Exception
Configuration_Exception

IndexBuilder

public IndexBuilder(Configuration configuration,
                    Database database)
             throws Database_Exception,
                    Configuration_Exception
Instantiates the Index_Builder class from a configuration and a database. If the database connection in the Database object is currently closed, this will force the connection open. See the default configuration file, HiVolume.conf for required parameters.

Parameters:
configuration -
database -
Throws:
Database_Exception
Configuration_Exception

IndexBuilder

public IndexBuilder(Configuration configuration,
                    Database database,
                    int recordsPerQuery)
             throws Database_Exception,
                    Configuration_Exception
Alternate constructor that allows the setting of the number of records to return per query. Increasing this number to higher values will decrease the number of ranged queries that have to be run to retrieve all the product data for the indexes at the expense of requiring more ram. Assuming ram isn't an issue, recordsPerQuery should be set as large as possible.

Parameters:
configuration -
database -
recordsPerQuery -
Throws:
Database_Exception
Configuration_Exception
Method Detail

addPropertyChangeListener

protected void addPropertyChangeListener(PropertyChangeListener listener)

writeDTMIndex

public void writeDTMIndex(Date date)
                   throws IOException,
                          SQLException
Writes a PDS Index file for DTMs and related products. It writes two files: The first includes only the products released on or after the input date. The other is a cumulative index and includes all products ever released. After writing the index files, it also updates the appropriate label files. The index filenames and label filenames are read from the configuration file.

Parameters:
date - The date of the last PDS release.
Throws:
IOException
SQLException

writeRDRIndex

public void writeRDRIndex(Date date)
                   throws IOException,
                          SQLException
Throws:
IOException
SQLException

writeEDRIndex

public void writeEDRIndex(Date date)
                   throws IOException,
                          SQLException
Writes a PDS Index file for EDRs. It writes two files: Rhe first includes only the products released on or after the input date. The other is a cumulative index and includes all products ever released. After writing the index files, it also updates the appropriate label files. The index filenames and label filenames are read from the configuation file.

Parameters:
date - The date of the PDS release.
Throws:
IOException
SQLException

main

public static void main(String[] args)
Parameters:
args -

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona