org.apache.hadoop.mapreduce.lib.db
Class OracleDataDrivenDBInputFormat<T extends DBWritable>
java.lang.Object
org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.LongWritable,T>
org.apache.hadoop.mapreduce.lib.db.DBInputFormat<T>
org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat<T>
org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBInputFormat<T>
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable
@InterfaceAudience.Public
@InterfaceStability.Evolving
public class OracleDataDrivenDBInputFormat<T extends DBWritable>
- extends DataDrivenDBInputFormat<T>
- implements org.apache.hadoop.conf.Configurable
A InputFormat that reads input data from an SQL table in an Oracle db.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.hadoop.conf.Configurable |
getConf, setConf |
OracleDataDrivenDBInputFormat
public OracleDataDrivenDBInputFormat()
getSplitter
protected DBSplitter getSplitter(int sqlDataType)
- Overrides:
getSplitter
in class DataDrivenDBInputFormat<T extends DBWritable>
- Returns:
- the DBSplitter implementation to use to divide the table/query into InputSplits.
createDBRecordReader
protected RecordReader<org.apache.hadoop.io.LongWritable,T> createDBRecordReader(DBInputFormat.DBInputSplit split,
org.apache.hadoop.conf.Configuration conf)
throws IOException
- Overrides:
createDBRecordReader
in class DataDrivenDBInputFormat<T extends DBWritable>
- Throws:
IOException
Copyright © 2013 Apache Software Foundation. All Rights Reserved.