Class FixCardReduction
java.lang.Object
talonsoalbi_at_gmail_dot_com.ssoxmatch.db.PostgresConnection
talonsoalbi_at_gmail_dot_com.ssoxmatch.actions.FixCardReduction
- All Implemented Interfaces:
Closeable,AutoCloseable
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
ConstructorsConstructorDescriptionFixCardReduction(PostgresConnection.DATABASE_LOCATION dbLoc, long timeout) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoiddoFixCardReduction(boolean numericalIntegration) Fixes the card reduction tablesstatic voidMain 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, getDatabaseName, getDelimiter, getSchema, ingest, ingest, ingest, rowCount, setDelimiter, setSchema
-
Constructor Details
-
FixCardReduction
public FixCardReduction(PostgresConnection.DATABASE_LOCATION dbLoc, long timeout) throws SQLException, spice.basic.SpiceErrorException, IOException Constructor- Parameters:
dbLoc- Database locationtimeout- Timeout, 0 to disable- Throws:
SQLException- Database errorsIOException- File system errorsspice.basic.SpiceErrorException- Ephemeris/kernel errors
-
-
Method Details
-
main
public static void main(String[] args) throws SQLException, spice.basic.SpiceErrorException, IOException Main action program to fix the card reduction tables. Local database is used- Parameters:
args- Not used- Throws:
SQLException- Database errorsIOException- File system errorsspice.basic.SpiceErrorException- Ephemeris/kernel errors
-
doFixCardReduction
public void doFixCardReduction(boolean numericalIntegration) throws SQLException, InterruptedException, spice.basic.SpiceErrorException, IOException Fixes the card reduction tables- Parameters:
numericalIntegration- True to use numerical integration in the ingestion of the card reduction tables- Throws:
SQLException- Database errorsIOException- File system errorsspice.basic.SpiceErrorException- Ephemeris/kernel errorsInterruptedException- For remote database a confirmation is required from the console
-