@InterfaceAudience.Public @InterfaceStability.Evolving public class OracleDBRecordReader<T extends DBWritable> extends DBRecordReader<T>
| Modifier and Type | Field and Description |
|---|---|
static String |
SESSION_TIMEZONE_KEY
Configuration key to set to a timezone string.
|
statement| Constructor and Description |
|---|
OracleDBRecordReader(DBInputFormat.DBInputSplit split,
Class<T> inputClass,
org.apache.hadoop.conf.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(org.apache.hadoop.conf.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(DBInputFormat.DBInputSplit split, Class<T> inputClass, org.apache.hadoop.conf.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(org.apache.hadoop.conf.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 © 2008–2022 Apache Software Foundation. All rights reserved.