From 9de589e83cc23314df215d5713848c95b6ebaf1a Mon Sep 17 00:00:00 2001 From: Jarek Jarcec Cecho Date: Wed, 23 Jan 2013 09:45:09 -0800 Subject: [PATCH] SQOOP-840: Inconsistent java generics declaration for exportwriter classes (Venkat Ranganathan via Jarek Jarcec Cecho) --- .../com/cloudera/sqoop/mapreduce/ExportOutputFormat.java | 2 +- .../apache/sqoop/mapreduce/ExportBatchOutputFormat.java | 5 +++-- .../apache/sqoop/mapreduce/OracleExportOutputFormat.java | 5 +++-- .../sqoop/mapreduce/SQLServerExportOutputFormat.java | 5 +++-- .../sqlserver/SqlServerExportBatchOutputFormat.java | 7 ++++--- 5 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/java/com/cloudera/sqoop/mapreduce/ExportOutputFormat.java b/src/java/com/cloudera/sqoop/mapreduce/ExportOutputFormat.java index 48c352b9..2b995520 100644 --- a/src/java/com/cloudera/sqoop/mapreduce/ExportOutputFormat.java +++ b/src/java/com/cloudera/sqoop/mapreduce/ExportOutputFormat.java @@ -30,7 +30,7 @@ public class ExportOutputFormat extends org.apache.sqoop.mapreduce.ExportOutputFormat { /** {@inheritDoc}. **/ - public class ExportRecordWriter extends + public class ExportRecordWriter extends org.apache.sqoop.mapreduce.ExportOutputFormat.ExportRecordWriter { public ExportRecordWriter(TaskAttemptContext context) diff --git a/src/java/org/apache/sqoop/mapreduce/ExportBatchOutputFormat.java b/src/java/org/apache/sqoop/mapreduce/ExportBatchOutputFormat.java index 20fc844b..bc59eb90 100644 --- a/src/java/org/apache/sqoop/mapreduce/ExportBatchOutputFormat.java +++ b/src/java/org/apache/sqoop/mapreduce/ExportBatchOutputFormat.java @@ -45,7 +45,7 @@ public class ExportBatchOutputFormat public RecordWriter getRecordWriter(TaskAttemptContext context) throws IOException { try { - return new ExportBatchRecordWriter(context); + return new ExportBatchRecordWriter(context); } catch (Exception e) { throw new IOException(e); } @@ -55,7 +55,8 @@ public RecordWriter getRecordWriter(TaskAttemptContext context) * RecordWriter to write the output to a row in a database table. * The actual database updates are executed in a second thread. */ - public class ExportBatchRecordWriter extends ExportRecordWriter { + public class ExportBatchRecordWriter + extends ExportRecordWriter { public ExportBatchRecordWriter(TaskAttemptContext context) throws ClassNotFoundException, SQLException { diff --git a/src/java/org/apache/sqoop/mapreduce/OracleExportOutputFormat.java b/src/java/org/apache/sqoop/mapreduce/OracleExportOutputFormat.java index 8e9cf1dd..fb667f66 100644 --- a/src/java/org/apache/sqoop/mapreduce/OracleExportOutputFormat.java +++ b/src/java/org/apache/sqoop/mapreduce/OracleExportOutputFormat.java @@ -36,7 +36,7 @@ public class OracleExportOutputFormat public RecordWriter getRecordWriter(TaskAttemptContext context) throws IOException { try { - return new OracleExportRecordWriter(context); + return new OracleExportRecordWriter(context); } catch (Exception e) { throw new IOException(e); } @@ -46,7 +46,8 @@ public RecordWriter getRecordWriter(TaskAttemptContext context) * RecordWriter to write the output to a row in a database table. * The actual database updates are executed in a second thread. */ - public class OracleExportRecordWriter extends ExportRecordWriter { + public class OracleExportRecordWriter + extends ExportRecordWriter { public OracleExportRecordWriter(TaskAttemptContext context) throws ClassNotFoundException, SQLException { diff --git a/src/java/org/apache/sqoop/mapreduce/SQLServerExportOutputFormat.java b/src/java/org/apache/sqoop/mapreduce/SQLServerExportOutputFormat.java index 1b395191..ead7fb2f 100644 --- a/src/java/org/apache/sqoop/mapreduce/SQLServerExportOutputFormat.java +++ b/src/java/org/apache/sqoop/mapreduce/SQLServerExportOutputFormat.java @@ -36,7 +36,7 @@ public class SQLServerExportOutputFormat public RecordWriter getRecordWriter(TaskAttemptContext context) throws IOException { try { - return new SQLServerExportRecordWriter(context); + return new SQLServerExportRecordWriter(context); } catch (Exception e) { throw new IOException(e); } @@ -46,7 +46,8 @@ public RecordWriter getRecordWriter(TaskAttemptContext context) * RecordWriter to write the output to a row in a database table. * The actual database updates are executed in a second thread. */ - public class SQLServerExportRecordWriter extends ExportRecordWriter { + public class SQLServerExportRecordWriter + extends ExportRecordWriter { public SQLServerExportRecordWriter(TaskAttemptContext context) throws ClassNotFoundException, SQLException { diff --git a/src/java/org/apache/sqoop/mapreduce/sqlserver/SqlServerExportBatchOutputFormat.java b/src/java/org/apache/sqoop/mapreduce/sqlserver/SqlServerExportBatchOutputFormat.java index f47d475e..cc69d77b 100644 --- a/src/java/org/apache/sqoop/mapreduce/sqlserver/SqlServerExportBatchOutputFormat.java +++ b/src/java/org/apache/sqoop/mapreduce/sqlserver/SqlServerExportBatchOutputFormat.java @@ -32,7 +32,7 @@ * Output format specific for Microsoft SQL Connector. */ public class SqlServerExportBatchOutputFormat - extends ExportBatchOutputFormat { + extends ExportBatchOutputFormat { private static final Log LOG = LogFactory.getLog(SqlServerExportBatchOutputFormat.class); @@ -42,14 +42,15 @@ public class SqlServerExportBatchOutputFormat public RecordWriter getRecordWriter(TaskAttemptContext context) throws IOException { try { - return new SqlServerExportBatchRecordWriter(context); + return new SqlServerExportBatchRecordWriter(context); } catch (Exception e) { throw new IOException(e); } } /** {@inheritDoc}. */ - public class SqlServerExportBatchRecordWriter extends ExportBatchRecordWriter{ + public class SqlServerExportBatchRecordWriter + extends ExportBatchRecordWriter{ public SqlServerExportBatchRecordWriter(TaskAttemptContext context) throws ClassNotFoundException, SQLException {