VALUE - User's data class containing setter methods for table columnspublic class RowOutputFormat<VALUE> extends org.apache.hadoop.mapreduce.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.GfxdRecordWriter
RecordWriter implementation for Gemfirexd. |
| Modifier and Type | Field and Description |
|---|---|
static String |
OUTPUT_BATCH_SIZE
By default row insert commands are executed in batch mode.
|
static int |
OUTPUT_BATCH_SIZE_DEFAULT |
static String |
OUTPUT_TABLE
The name of the table to be populated, for example APP.CUSTOMERS.
|
static String |
OUTPUT_URL
System URL where the output table is existing.
|
| Constructor and Description |
|---|
RowOutputFormat() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext context) |
protected static String |
getDriver(org.apache.hadoop.conf.Configuration conf) |
org.apache.hadoop.mapreduce.OutputCommitter |
getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
org.apache.hadoop.mapreduce.RecordWriter<Key,VALUE> |
getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
protected static void |
validateConfiguration(org.apache.hadoop.conf.Configuration conf)
Validates correctness and completeness of job's output configuration.
|
public static final String OUTPUT_TABLE
public static final String OUTPUT_URL
public static final String OUTPUT_BATCH_SIZE
public static final int OUTPUT_BATCH_SIZE_DEFAULT
public void checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext context)
throws IOException,
InterruptedException
checkOutputSpecs in class org.apache.hadoop.mapreduce.OutputFormat<Key,VALUE>IOExceptionInterruptedExceptionprotected static void validateConfiguration(org.apache.hadoop.conf.Configuration conf)
throws org.apache.hadoop.mapred.InvalidJobConfException
conf - job conforg.apache.hadoop.mapred.InvalidJobConfExceptionprotected static String getDriver(org.apache.hadoop.conf.Configuration conf)
public org.apache.hadoop.mapreduce.RecordWriter<Key,VALUE> getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
getRecordWriter in class org.apache.hadoop.mapreduce.OutputFormat<Key,VALUE>IOExceptionpublic org.apache.hadoop.mapreduce.OutputCommitter getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException,
InterruptedException
getOutputCommitter in class org.apache.hadoop.mapreduce.OutputFormat<Key,VALUE>IOExceptionInterruptedExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.