VALUE - User's data class containing setter methods for table columnspublic class RowOutputFormat<VALUE> extends RowOutputFormat<VALUE> implements org.apache.hadoop.mapred.OutputFormat<Key,VALUE>
OutputFormat implementation for Gemfirexd. This class uses
client connection to populate records in the DB. User is responsible for
knowing name and type of the table columns. User provides a data class which
contains setter methods for each column which needs to be populated. This
class calls each setter method to populate the insert query.| Modifier and Type | Class and Description |
|---|---|
class |
RowOutputFormat.MapRedGfxdRecordWriter
RecordWriter implementation for Gemfirexd. |
RowOutputFormat.GfxdRecordWriter| Modifier and Type | Field and Description |
|---|---|
static String |
OUTPUT_BATCH_SIZE
By default row insert commands are executed in batch mode.
|
static String |
OUTPUT_TABLE
The name of the table to output to, for example APP.CUSTOMERS.
|
static String |
OUTPUT_URL
JDBC url used to connect to a running gemfirexd instance.
|
OUTPUT_BATCH_SIZE_DEFAULT| Constructor and Description |
|---|
RowOutputFormat() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkOutputSpecs(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.mapred.JobConf job) |
org.apache.hadoop.mapred.RecordWriter<Key,VALUE> |
getRecordWriter(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.mapred.JobConf job,
String name,
org.apache.hadoop.util.Progressable progress) |
checkOutputSpecs, getDriver, getOutputCommitter, getRecordWriter, validateConfigurationpublic static final String OUTPUT_TABLE
public static final String OUTPUT_URL
public static final String OUTPUT_BATCH_SIZE
public void checkOutputSpecs(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.mapred.JobConf job)
throws IOException
checkOutputSpecs in interface org.apache.hadoop.mapred.OutputFormat<Key,VALUE>IOExceptionpublic org.apache.hadoop.mapred.RecordWriter<Key,VALUE> getRecordWriter(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.mapred.JobConf job, String name, org.apache.hadoop.util.Progressable progress) throws IOException
getRecordWriter in interface org.apache.hadoop.mapred.OutputFormat<Key,VALUE>IOExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.