public class QueryRunner
extends java.lang.Object
NetricsCompoundReader
.
Queries are generated using an ANetricsCompoundQueryBuilder
object passed into the QueryRunner. The input data format
is taken from the table structure defined in the
ANetricsCompountQueryBuilder. The query runner configuration
supports mapping input and output table names and field names.
See the RunQuery.xsd schema for an explanation of the
query run configuration options.
This class is used by the main of the GeneralCompoundQueryBuilder class to implement the run query option. It may also be used by outside applications to implement similar functionality.
Constructor and Description |
---|
QueryRunner(java.io.File run_config_file,
com.netrics.likeit.ANetricsCompoundQueryBuilder our_builder,
AQBPLogger run_logger)
Create a query runner from a configuration file.
|
Modifier and Type | Method and Description |
---|---|
boolean |
run()
Run the set of queries for this query runner.
|
public QueryRunner(java.io.File run_config_file, com.netrics.likeit.ANetricsCompoundQueryBuilder our_builder, AQBPLogger run_logger) throws java.lang.IllegalArgumentException, AQBPLogger.QBPException
run_config_file
- the configuration for the query run.our_builder
- the query builder to be used to construct the queries.run_logger
- logger for reporting errors.java.lang.IllegalArgumentException
- if run_logger is null.AQBPLogger.QBPException
- for all other errors.public boolean run() throws AQBPLogger.QBPException
AQBPLogger.QBPException
- on unrecoverable errors, or
any error if the logger for this runner is in
exception mode.