K - - Key passed to this class to be writtenV - - Value passed to this class to be written. The value is ignored.
public class ETLDBOutputFormat<K extends org.apache.hadoop.mapreduce.lib.db.DBWritable,V>
extends org.apache.hadoop.mapreduce.lib.db.DBOutputFormat<K,V>
DBOutputFormat to load the database driver class correctly.| Modifier and Type | Field and Description |
|---|---|
static String |
AUTO_COMMIT_ENABLED |
| Constructor and Description |
|---|
ETLDBOutputFormat() |
| Modifier and Type | Method and Description |
|---|---|
String |
constructQuery(String table,
String[] fieldNames) |
org.apache.hadoop.mapreduce.RecordWriter<K,V> |
getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
public static final String AUTO_COMMIT_ENABLED
public org.apache.hadoop.mapreduce.RecordWriter<K,V> getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
getRecordWriter in class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat<K extends org.apache.hadoop.mapreduce.lib.db.DBWritable,V>IOExceptionCopyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.