예제 #1
0
 /// <summary>
 /// Represent the counter in a textual format that can be converted back to
 /// its object form
 /// </summary>
 /// <returns>
 /// the string in the following format
 /// {(groupName)(group-displayName)[(counterName)(displayName)(value)][]*}
 /// </returns>
 public virtual string MakeEscapedCompactString()
 {
     return(CountersStrings.ToEscapedCompactString(this));
 }
예제 #2
0
 /// <summary>
 /// Convert a stringified (by
 /// <see cref="MakeEscapedCompactString()"/>
 /// counter
 /// representation into a counter object.
 /// </summary>
 /// <param name="compactString">to parse</param>
 /// <returns>a new counters object</returns>
 /// <exception cref="Sharpen.ParseException"/>
 public static Org.Apache.Hadoop.Mapred.Counters FromEscapedCompactString(string compactString
                                                                          )
 {
     return(CountersStrings.ParseEscapedCompactString(compactString, new Org.Apache.Hadoop.Mapred.Counters
                                                          ()));
 }
예제 #3
0
 /// <returns>
 /// the compact stringified version of the group in the format
 /// {(actual-name)(display-name)(value)[][][]} where [] are compact strings
 /// for the counters within.
 /// </returns>
 public virtual string MakeEscapedCompactString()
 {
     return(CountersStrings.ToEscapedCompactString(realGroup));
 }