Hadoop.Client/Jobs/WebHCatalog/Data/JsonPayloadConverterBase.cs
/// <summary>
/// Creates the payload for a MapReduce request.
/// </summary>
/// <param name="userName">
/// The user name.
/// </param>
/// <param name="details">
/// The details.
/// </param>
/// <returns>
/// A string that represents the payload for the request.
/// </returns>
Creates the payload for a MapReduce request.
Creates the payload for a MapReduce request .
public string SerializeMapReduceRequest(string userName, MapReduceJobCreateParameters details)
        {
            var values = new List<KeyValuePair<string, string>>();
            values.AddRange(this.SerializeJobRequest(userName, details, details.JobName, details.Arguments, details.Defines));
            values.Add(new KeyValuePair<string, string>(WebHCatConstants.Jar, details.JarFile));
            values.Add(new KeyValuePair<string, string>(WebHCatConstants.Class, details.ClassName));
            var retval = this.ConvertItems(values.Where(kvp => kvp.Value != null));
            return retval;
        }
public string SerializeMapReduceRequest ( string userName , MapReduceJobCreateParameters details ) { var values = new List < KeyValuePair < string , string > > ( ) ; values . AddRange ( this . SerializeJobRequest ( userName , details , details . JobName , details . Arguments , details . Defines ) ) ; values . Add ( new KeyValuePair < string , string > ( WebHCatConstants . Jar , details . JarFile ) ) ; values . Add ( new KeyValuePair < string , string > ( WebHCatConstants . Class , details . ClassName ) ) ; var retval = this . ConvertItems ( values . Where ( kvp => kvp . Value != null ) ) ; return retval ; }
Creates the payload for a MapReduce request.
Creates the payload for a MapReduce request .
//details.ArgumentNotNull("details");
A string that represents the payload for the request.
A string that represents the payload for the request .
userName
string
The user name.
The user name .
details
MapReduceJobCreateParameters
None