@InterfaceAudience.Public @InterfaceStability.Evolving public class OracleDBRecordReader<T extends DBWritable> extends DBRecordReader<T>
限定符和类型 | 字段和说明 |
---|---|
static String |
SESSION_TIMEZONE_KEY
Configuration key to set to a timezone string.
|
statement
构造器和说明 |
---|
OracleDBRecordReader(DBInputFormat.DBInputSplit split,
Class<T> inputClass,
Configuration conf,
Connection conn,
DBConfiguration dbConfig,
String cond,
String[] fields,
String table) |
限定符和类型 | 方法和说明 |
---|---|
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, setStatement
public OracleDBRecordReader(DBInputFormat.DBInputSplit split, Class<T> inputClass, Configuration conf, Connection conn, DBConfiguration dbConfig, String cond, String[] fields, String table) throws SQLException
SQLException
protected String getSelectQuery()
getSelectQuery
在类中 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.SQLException
Copyright © 2009 The Apache Software Foundation