Example usage for org.apache.hadoop.mapreduce.lib.db DBConfiguration setOutputFieldCount

List of usage examples for org.apache.hadoop.mapreduce.lib.db DBConfiguration setOutputFieldCount

Introduction

In this page you can find the example usage for org.apache.hadoop.mapreduce.lib.db DBConfiguration setOutputFieldCount.

Prototype

public void setOutputFieldCount(int fieldCount) 

Source Link

Usage

From source file:com.cloudera.sqoop.mapreduce.db.DBOutputFormat.java

License:Apache License

/**
 * Initializes the reduce-part of the job
 * with the appropriate output settings.
 *
 * @param job The job//from w w  w . j av a  2 s  . co m
 * @param tableName The table to insert data into
 * @param fieldCount the number of fields in the table.
 */
public static void setOutput(Job job, String tableName, int fieldCount) throws IOException {
    DBConfiguration dbConf = setOutput(job, tableName);
    dbConf.setOutputFieldCount(fieldCount);
}