@InterfaceAudience.Public @InterfaceStability.Stable public class DBConfiguration extends DBConfiguration
| Modifier and Type | Field and Description | 
|---|---|
| static String | DRIVER_CLASS_PROPERTYThe JDBC Driver class name | 
| static String | INPUT_CLASS_PROPERTYClass name implementing DBWritable which will hold input tuples | 
| static String | INPUT_CONDITIONS_PROPERTYWHERE clause in the input SELECT statement | 
| static String | INPUT_COUNT_QUERYInput query to get the count of records | 
| static String | INPUT_FIELD_NAMES_PROPERTYField names in the Input table | 
| static String | INPUT_ORDER_BY_PROPERTYORDER BY clause in the input SELECT statement | 
| static String | INPUT_QUERYWhole input query, exluding LIMIT...OFFSET | 
| static String | INPUT_TABLE_NAME_PROPERTYInput table name | 
| static String | OUTPUT_FIELD_COUNT_PROPERTYNumber of fields in the Output table | 
| static String | OUTPUT_FIELD_NAMES_PROPERTYField names in the Output table | 
| static String | OUTPUT_TABLE_NAME_PROPERTYOutput table name | 
| static String | PASSWORD_PROPERTYPassword to access the database | 
| static String | URL_PROPERTYJDBC Database access URL | 
| static String | USERNAME_PROPERTYUser name to access the database | 
INPUT_BOUNDING_QUERY| Modifier and Type | Method and Description | 
|---|---|
| static void | configureDB(JobConf job,
           String driverClass,
           String dbUrl)Sets the DB access related fields in the JobConf. | 
| static void | configureDB(JobConf job,
           String driverClass,
           String dbUrl,
           String userName,
           String passwd)Sets the DB access related fields in the JobConf. | 
configureDB, configureDB, getConf, getConnection, getInputBoundingQuery, getInputClass, getInputConditions, getInputCountQuery, getInputFieldNames, getInputOrderBy, getInputQuery, getInputTableName, getOutputFieldCount, getOutputFieldNames, getOutputTableName, setInputBoundingQuery, setInputClass, setInputConditions, setInputCountQuery, setInputFieldNames, setInputOrderBy, setInputQuery, setInputTableName, setOutputFieldCount, setOutputFieldNames, setOutputTableNamepublic static final String DRIVER_CLASS_PROPERTY
public static final String URL_PROPERTY
public static final String USERNAME_PROPERTY
public static final String PASSWORD_PROPERTY
public static final String INPUT_TABLE_NAME_PROPERTY
public static final String INPUT_FIELD_NAMES_PROPERTY
public static final String INPUT_CONDITIONS_PROPERTY
public static final String INPUT_ORDER_BY_PROPERTY
public static final String INPUT_QUERY
public static final String INPUT_COUNT_QUERY
public static final String INPUT_CLASS_PROPERTY
public static final String OUTPUT_TABLE_NAME_PROPERTY
public static final String OUTPUT_FIELD_NAMES_PROPERTY
public static final String OUTPUT_FIELD_COUNT_PROPERTY
public static void configureDB(JobConf job, String driverClass, String dbUrl, String userName, String passwd)
job - the jobdriverClass - JDBC Driver class namedbUrl - JDBC DB access URL.userName - DB access usernamepasswd - DB access passwdCopyright © 2023 Apache Software Foundation. All rights reserved.