@InterfaceAudience.Public @InterfaceStability.Evolving public class DataDrivenDBRecordReader<T extends DBWritable> extends DBRecordReader<T>
statement| 构造器和说明 | 
|---|
DataDrivenDBRecordReader(DBInputFormat.DBInputSplit split,
                        Class<T> inputClass,
                        Configuration conf,
                        Connection conn,
                        DBConfiguration dbConfig,
                        String cond,
                        String[] fields,
                        String table,
                        String dbProduct)  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
protected String | 
getSelectQuery()
Returns the query for selecting the records,
 subclasses can override this for custom behaviour. 
 | 
close, createValue, executeQuery, getConditions, getConnection, getCurrentKey, getCurrentValue, getDBConf, getFieldNames, getPos, getProgress, getSplit, getStatement, getTableName, initialize, next, nextKeyValue, setStatementpublic DataDrivenDBRecordReader(DBInputFormat.DBInputSplit split, Class<T> inputClass, Configuration conf, Connection conn, DBConfiguration dbConfig, String cond, String[] fields, String table, String dbProduct) throws SQLException
split - The InputSplit to read data forSQLExceptionprotected String getSelectQuery()
getSelectQuery 在类中 DBRecordReader<T extends DBWritable>Copyright © 2009 The Apache Software Foundation