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