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

Method decode

src/core/HistogramCodecManager.java:201–206  ·  view source on GitHub ↗

Finds the proper codec and calls it's decode method to return the histogram data point for queries or validation. @param id The ID of the histogram type to search for. @param raw_data The non-null and non-empty byte array to parse. Should NOT include the first byte of the ID in the data. @param incl

(final int id, 
                                   final byte[] raw_data,
                                   final boolean includes_id)

Source from the content-addressed store, hash-verified

199 * @return A non-null data point if decoding was successful.
200 */
201 public Histogram decode(final int id,
202 final byte[] raw_data,
203 final boolean includes_id) {
204 final HistogramDataPointCodec codec = getCodec(id);
205 return codec.decode(raw_data, includes_id);
206 }
207}

Callers

nothing calls this directly

Calls 2

getCodecMethod · 0.95
decodeMethod · 0.95

Tested by

no test coverage detected