@InterfaceAudience.Public @InterfaceStability.Evolving public class MySQLDataDrivenDBRecordReader<T extends DBWritable> extends DataDrivenDBRecordReader<T>
statement
Constructor and Description |
---|
MySQLDataDrivenDBRecordReader(org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit split,
Class<T> inputClass,
Configuration conf,
Connection conn,
DBConfiguration dbConfig,
String cond,
String[] fields,
String table) |
Modifier and Type | Method and Description |
---|---|
protected ResultSet |
executeQuery(String query) |
getSelectQuery
close, createValue, getConditions, getConnection, getCurrentKey, getCurrentValue, getDBConf, getFieldNames, getPos, getProgress, getSplit, getStatement, getTableName, initialize, next, nextKeyValue, setStatement
public MySQLDataDrivenDBRecordReader(org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit split, Class<T> inputClass, Configuration conf, Connection conn, DBConfiguration dbConfig, String cond, String[] fields, String table) throws SQLException
SQLException
protected ResultSet executeQuery(String query) throws SQLException
executeQuery
in class DBRecordReader<T extends DBWritable>
SQLException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.