/// <summary> /// Initializes the reduce-part of the job with /// the appropriate output settings /// </summary> /// <param name="job">The job</param> /// <param name="tableName">The table to insert data into</param> /// <param name="fieldNames">The field names in the table.</param> /// <exception cref="System.IO.IOException"/> public static void SetOutput(Job job, string tableName, params string[] fieldNames ) { if (fieldNames.Length > 0 && fieldNames[0] != null) { DBConfiguration dbConf = SetOutput(job, tableName); dbConf.SetOutputFieldNames(fieldNames); } else { if (fieldNames.Length > 0) { SetOutput(job, tableName, fieldNames.Length); } else { throw new ArgumentException("Field names must be greater than 0"); } } }