private void SetStandardProperties(ClientJobRequest request, JobCreateParameters details) { foreach (var jobRequestParameter in request.Resources) { details.Files.Add(jobRequestParameter.Value.ToString()); } }
protected JobRequest(ClientJobRequest request) { this.Resources = request.Resources.Select(p => p.Value.ToString()).ToList(); this.Parameters = request.Parameters.ToDictionary(i => i.Key, e => e.Value.ToString()); this.Name = request.JobName; this.Parameters.Add(new KeyValuePair<string, string>(JobSubmissionConstants.JobNameDefine,request.JobName)); this.OutputStorageAccount = request.OutputStorageLocation; }
protected JobRequest(ClientJobRequest request) { this.Resources = request.Resources.Select(p => p.Value.ToString()).ToList(); this.Parameters = request.Parameters.ToDictionary(i => i.Key, e => e.Value.ToString()); this.Name = request.JobName; this.Parameters.Add(new KeyValuePair <string, string>(JobSubmissionConstants.JobNameDefine, request.JobName)); this.OutputStorageAccount = request.OutputStorageLocation; }
public static bool TryParse(ClientJobRequest request, out JobRequest output) { try { output = new MapReduceJobRequest(request); return true; } catch (Exception) { output = null; return false; } }
public static bool TryParse(ClientJobRequest request, out JobRequest output) { try { output = new MapReduceJobRequest(request); return(true); } catch (Exception) { output = null; return(false); } }
public MapReduceJobRequest(ClientJobRequest request) : base(request) { this.ApplicationName = request.ApplicationName; this.JarFile = request.JarFile; this.Arguments = request.Arguments; }
public HiveJobRequest(ClientJobRequest request) : base(request) { this.Query = request.Query; }
public MapReduceJobRequest(ClientJobRequest request) : base(request) { this.ApplicationName = request.ApplicationName; this.JarFile = request.JarFile; this.Arguments = request.Arguments; }
public HiveJobRequest(ClientJobRequest request) : base(request) { this.Query = request.Query; }