saveResults: Save the results into the output database

Description Usage Arguments Details

View source: R/saveResults.R

Description

Environment variables:

Usage

1
saveResults(results, jobId, node, resultTable, outFormat, shape, fn, conn)

Arguments

results

The results to store in the database. The following types are supported: data frame, matrix, string.

jobId

ID of the job, defaults to the value of environment parameter JOB_ID

node

Node used for the execution of the script, defaults to the value of environment parameter NODE

resultTable

Name of the result table, defaults to the value of environment parameter RESULT_TABLE

outFormat

Format requested for the output, default to value of environment parameter OUT_FORMAT

shape

Hint about the shape of the data. The following shapes are supported: string, pfa_json, pfa_yaml, r_dataframe_intermediate, r_dataframe_columns, r_matrix, r_other_intermediate

fn

Hint about the function used to produce the data, defaults to the value of environment parameter FUNCTION

conn

The connection to the database, default to global variable out_conn

Details

- Execution context: JOB_ID : ID of the job NODE : Node used for the execution of the script OUT_FORMAT : Hint for the exact shape of the Json stored in the database. Current values are PARTIAL_RESULTS, PRESENTATION RESULT_TABLE: Name of the result table, defaults to 'job_result' OUT_JDBC_DRIVER : class name of the JDBC driver for output results OUT_JDBC_JAR_PATH : path to the JDBC driver jar for output results OUT_JDBC_URL : JDBC connection URL for output results OUT_JDBC_USER : User for the database connection for output results OUT_JDBC_PASSWORD : Password for the database connection for output results FUNCTION: Name of the function executed


LREN-CHUV/r-mip-adaptor documentation built on May 20, 2019, 5:45 p.m.