Class FixCardReduction
- java.lang.Object
-
- talonsoalbi_at_gmail_dot_com.ssoxmatch.db.PostgresConnection
-
- talonsoalbi_at_gmail_dot_com.ssoxmatch.actions.FixCardReduction
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class FixCardReduction extends PostgresConnection
To fix the card reduction tables due to incomplete ingestions in the local database- Author:
- talonso
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class talonsoalbi_at_gmail_dot_com.ssoxmatch.db.PostgresConnection
PostgresConnection.DATABASE_LOCATION
-
-
Constructor Summary
Constructors Constructor Description FixCardReduction(PostgresConnection.DATABASE_LOCATION dbLoc, long timeout)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doFixCardReduction(boolean numericalIntegration)
Fixes the card reduction tablesstatic void
main(java.lang.String[] args)
Main action program to fix the card reduction tables.-
Methods inherited from class talonsoalbi_at_gmail_dot_com.ssoxmatch.db.PostgresConnection
alreadyFilled, close, executeCommand, executeQuery, getColumnNames, getConnectionCommand, getDatabaseLocation, getDelimiter, getSchema, ingest, ingest, ingest, rowCount, setDelimiter, setSchema
-
-
-
-
Constructor Detail
-
FixCardReduction
public FixCardReduction(PostgresConnection.DATABASE_LOCATION dbLoc, long timeout) throws java.sql.SQLException, spice.basic.SpiceErrorException, java.io.IOException
Constructor- Parameters:
dbLoc
- Database locationtimeout
- Timeout, 0 to disable- Throws:
java.sql.SQLException
- Database errorsjava.io.IOException
- File system errorsspice.basic.SpiceErrorException
- Ephemeris/kernel errors
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.sql.SQLException, spice.basic.SpiceErrorException, java.io.IOException
Main action program to fix the card reduction tables. Local database is used- Parameters:
args
- Not used- Throws:
java.sql.SQLException
- Database errorsjava.io.IOException
- File system errorsspice.basic.SpiceErrorException
- Ephemeris/kernel errors
-
doFixCardReduction
public void doFixCardReduction(boolean numericalIntegration) throws java.sql.SQLException, java.lang.InterruptedException, spice.basic.SpiceErrorException, java.io.IOException
Fixes the card reduction tables- Parameters:
numericalIntegration
- True to use numerical integration in the ingestion of the card reduction tables- Throws:
java.sql.SQLException
- Database errorsjava.io.IOException
- File system errorsspice.basic.SpiceErrorException
- Ephemeris/kernel errorsjava.lang.InterruptedException
- For remote database a confirmation is required from the console
-
-