public class DataDrivenDBRecordReader<T extends DBWritable> extends DBRecordReader<T>
Constructor and Description |
---|
DataDrivenDBRecordReader(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,
java.lang.String dbProduct) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.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, setStatement
public DataDrivenDBRecordReader(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, java.lang.String dbProduct) throws java.sql.SQLException
split
- The InputSplit to read data forjava.sql.SQLException
protected java.lang.String getSelectQuery()
getSelectQuery
in class DBRecordReader<T extends DBWritable>
Copyright © 2009 The Apache Software Foundation