|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.util.CountersStrings
@InterfaceAudience.Private public class CountersStrings
String conversion utilities for counters. Candidate for deprecation since we start to use JSON in 0.21+
| Constructor Summary | |
|---|---|
CountersStrings()
|
|
| Method Summary | ||
|---|---|---|
static
|
parseEscapedCompactString(String compactString,
T counters)
Parse a pre 0.21 counters string into a counter object. |
|
static String |
toEscapedCompactString(Counter counter)
Make the pre 0.21 counter string (for e.g. |
|
static
|
toEscapedCompactString(G group)
Make the 0.21 counter group string. |
|
static
|
toEscapedCompactString(T counters)
Make the pre 0.21 counters string |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CountersStrings()
| Method Detail |
|---|
public static String toEscapedCompactString(Counter counter)
counter - to stringify
public static <G extends CounterGroupBase<?>> String toEscapedCompactString(G group)
G - type of the groupgroup - to stringify
public static <C extends Counter,G extends CounterGroupBase<C>,T extends AbstractCounters<C,G>> String toEscapedCompactString(T counters)
C - type of the counterG - type of the counter groupT - type of the counters objectcounters - the object to stringify
public static <C extends Counter,G extends CounterGroupBase<C>,T extends AbstractCounters<C,G>> T parseEscapedCompactString(String compactString,
T counters)
throws ParseException
C - type of the counterG - type of the counter groupT - type of the counters objectcompactString - to parsecounters - an empty counters object to hold the result
ParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||