// Configuration methods override superclass to ensure that the proper // DataDrivenDBInputFormat gets used. /// <summary>Note that the "orderBy" column is called the "splitBy" in this version.</summary> /// <remarks> /// Note that the "orderBy" column is called the "splitBy" in this version. /// We reuse the same field, but it's not strictly ordering it -- just partitioning /// the results. /// </remarks> public static void SetInput(Job job, Type inputClass, string tableName, string conditions , string splitBy, params string[] fieldNames) { DBInputFormat.SetInput(job, inputClass, tableName, conditions, splitBy, fieldNames ); job.SetInputFormatClass(typeof(DataDrivenDBInputFormat)); }
/// <summary> /// setInput() takes a custom query and a separate "bounding query" to use /// instead of the custom "count query" used by DBInputFormat. /// </summary> public static void SetInput(Job job, Type inputClass, string inputQuery, string inputBoundingQuery ) { DBInputFormat.SetInput(job, inputClass, inputQuery, string.Empty); job.GetConfiguration().Set(DBConfiguration.InputBoundingQuery, inputBoundingQuery ); job.SetInputFormatClass(typeof(DataDrivenDBInputFormat)); }