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

Method RunEndEncodedArrayFromJSON

cpp/src/arrow/array/diff_test.cc:167–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 }
166
167 std::shared_ptr<RunEndEncodedArray> RunEndEncodedArrayFromJSON(
168 int64_t logical_length, const std::shared_ptr<DataType>& ree_type,
169 std::string_view run_ends_json, std::string_view values_json,
170 int64_t logical_offset = 0) {
171 auto& ree_type_ref = checked_cast<const RunEndEncodedType&>(*ree_type);
172 auto run_ends = ArrayFromJSON(ree_type_ref.run_end_type(), run_ends_json);
173 auto values = ArrayFromJSON(ree_type_ref.value_type(), values_json);
174 return RunEndEncodedArray::Make(logical_length, std::move(run_ends),
175 std::move(values), logical_offset)
176 .ValueOrDie();
177 }
178
179 template <typename RunEndType>
180 void TestBasicsWithREEs() {

Callers

nothing calls this directly

Calls 4

ArrayFromJSONFunction · 0.85
ValueOrDieMethod · 0.80
MakeFunction · 0.70
value_typeMethod · 0.45

Tested by

no test coverage detected