MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / add

Method add

src/tsd/client/QueryString.java:73–80  ·  view source on GitHub ↗

Adds a query string element. @param name The name of the element. @param value The value of the element.

(final String name, final String value)

Source from the content-addressed store, hash-verified

71 * @param value The value of the element.
72 */
73 public void add(final String name, final String value) {
74 ArrayList<String> values = super.get(name);
75 if (values == null) {
76 values = new ArrayList<String>(1); // Often there's only 1 value.
77 super.put(name, values);
78 }
79 values.add(value);
80 }
81
82 /**
83 * Returns the first value for the given key, or {@code null}.

Callers 15

decodeMethod · 0.95
runFullTableMethod · 0.45
runQueriesMethod · 0.45
fsckRowMethod · 0.45
fsckDataPointsMethod · 0.45
buildURLSetMethod · 0.45
getDataTableScannersMethod · 0.45
callMethod · 0.45
callMethod · 0.45
callMethod · 0.45
parseMethod · 0.45
callMethod · 0.45

Calls 2

putMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected