org.apache.hadoop.mapreduce.lib.db
Class OracleDBRecordReader<T extends DBWritable>
java.lang.Object
org.apache.hadoop.mapreduce.RecordReader<LongWritable,T>
org.apache.hadoop.mapreduce.lib.db.DBRecordReader<T>
org.apache.hadoop.mapreduce.lib.db.OracleDBRecordReader<T>
- All Implemented Interfaces:
- Closeable
public class OracleDBRecordReader<T extends DBWritable>
- extends DBRecordReader<T>
A RecordReader that reads records from an Oracle SQL table.
Method Summary |
protected String |
getSelectQuery()
Returns the query for selecting the records from an Oracle DB. |
Methods inherited from class org.apache.hadoop.mapreduce.lib.db.DBRecordReader |
close, createValue, executeQuery, getConditions, getConnection, getCurrentKey, getCurrentValue, getDBConf, getFieldNames, getPos, getProgress, getSplit, getStatement, getTableName, initialize, next, nextKeyValue, setStatement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OracleDBRecordReader
public OracleDBRecordReader(DBInputFormat.DBInputSplit split,
Class<T> inputClass,
Configuration conf,
Connection conn,
DBConfiguration dbConfig,
String cond,
String[] fields,
String table)
throws SQLException
- Throws:
SQLException
getSelectQuery
protected String getSelectQuery()
- Returns the query for selecting the records from an Oracle DB.
- Overrides:
getSelectQuery
in class DBRecordReader<T extends DBWritable>
Copyright © 2009 The Apache Software Foundation