@InterfaceAudience.Public @InterfaceStability.Evolving public class OracleDBRecordReader<T extends DBWritable> extends DBRecordReader<T>
| Modifier and Type | Field and Description | 
|---|---|
| static String | SESSION_TIMEZONE_KEYConfiguration key to set to a timezone string. | 
statement| Constructor and Description | 
|---|
| OracleDBRecordReader(org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit split,
                                        Class<T> inputClass,
                                        Configuration conf,
                                        Connection conn,
                                        DBConfiguration dbConfig,
                                        String cond,
                                        String[] fields,
                                        String table) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected String | getSelectQuery()Returns the query for selecting the records from an Oracle DB. | 
| static void | setSessionTimeZone(Configuration conf,
                                    Connection conn)Set session time zone | 
close, createValue, executeQuery, getConditions, getConnection, getCurrentKey, getCurrentValue, getDBConf, getFieldNames, getPos, getProgress, getSplit, getStatement, getTableName, initialize, next, nextKeyValue, setStatementpublic static final String SESSION_TIMEZONE_KEY
public OracleDBRecordReader(org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit split, Class<T> inputClass, Configuration conf, Connection conn, DBConfiguration dbConfig, String cond, String[] fields, String table) throws SQLException
SQLExceptionprotected String getSelectQuery()
getSelectQuery in class DBRecordReader<T extends DBWritable>public static void setSessionTimeZone(Configuration conf, Connection conn) throws SQLException
conf - The current configuration.
 We read the 'oracle.sessionTimeZone' property from here.conn - The connection to alter the timezone properties of.SQLExceptionCopyright © 2016 Apache Software Foundation. All Rights Reserved.