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

Function REEFromJSON

cpp/src/arrow/compute/kernels/vector_selection_test.cc:56–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56Result<std::shared_ptr<Array>> REEFromJSON(const std::shared_ptr<DataType>& ree_type,
57 const std::string& json) {
58 auto ree_type_ptr = checked_cast<const RunEndEncodedType*>(ree_type.get());
59 auto array = ArrayFromJSON(ree_type_ptr->value_type(), json);
60 ARROW_ASSIGN_OR_RAISE(
61 auto datum, RunEndEncode(array, RunEndEncodeOptions{ree_type_ptr->run_end_type()}));
62 return datum.make_array();
63}
64
65Result<std::shared_ptr<Array>> FilterFromJSON(
66 const std::shared_ptr<DataType>& filter_type, const std::string& json) {

Callers 1

FilterFromJSONFunction · 0.70

Calls 4

ArrayFromJSONFunction · 0.85
make_arrayMethod · 0.80
getMethod · 0.45
value_typeMethod · 0.45

Tested by

no test coverage detected