MCPcopy Create free account
hub / github.com/apache/arrow / from_json

Method from_json

dev/archery/archery/benchmark/jmh.py:191–198  ·  view source on GitHub ↗
(cls, payload)

Source from the content-addressed store, hash-verified

189
190 @classmethod
191 def from_json(cls, payload):
192 def group_key(x):
193 return x.name
194
195 benchmarks = map(
196 lambda x: JavaMicrobenchmarkHarnessObservation(**x), payload)
197 groups = groupby(sorted(benchmarks, key=group_key), group_key)
198 return [cls(k, list(bs)) for k, bs in groups]

Callers

nothing calls this directly

Calls 3

mapFunction · 0.85
listFunction · 0.85

Tested by

no test coverage detected