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 java.lang.String |
OUTPUT_BATCH_SIZE
By default row insert commands are executed in batch mode.
|
static java.lang.String |
OUTPUT_TABLE
The name of the table to output to, for example APP.CUSTOMERS.
|
static java.lang.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,
java.lang.String name,
org.apache.hadoop.util.Progressable progress) |
checkOutputSpecs, getDriver, getOutputCommitter, getRecordWriter, validateConfigurationpublic static final java.lang.String OUTPUT_TABLE
public static final java.lang.String OUTPUT_URL
public static final java.lang.String OUTPUT_BATCH_SIZE
public void checkOutputSpecs(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.mapred.JobConf job)
throws java.io.IOException
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.