コード例 #1
0
 /**
  * Sets the configuration for for the job's {@link BatchWriter} instances. If not set, a new
  * {@link BatchWriterConfig}, with sensible built-in defaults is used. Setting the configuration
  * multiple times overwrites any previous configuration.
  *
  * @param job the Hadoop job instance to be configured
  * @param bwConfig the configuration for the {@link BatchWriter}
  * @since 1.5.0
  */
 public static void setBatchWriterOptions(Job job, BatchWriterConfig bwConfig) {
   OutputConfigurator.setBatchWriterOptions(CLASS, job.getConfiguration(), bwConfig);
 }