@InterfaceAudience.Public @InterfaceStability.Evolving public class MySQLDBRecordReader<T extends DBWritable> extends DBRecordReader<T>
statement
Constructor and Description |
---|
MySQLDBRecordReader(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) |
close, createValue, getConditions, getConnection, getCurrentKey, getCurrentValue, getDBConf, getFieldNames, getPos, getProgress, getSelectQuery, getSplit, getStatement, getTableName, initialize, next, nextKeyValue, setStatement
public MySQLDBRecordReader(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.