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

Method Convert

cpp/src/arrow/json/converter.cc:99–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 using PrimitiveConverter::PrimitiveConverter;
98
99 Status Convert(const std::shared_ptr<Array>& in, std::shared_ptr<Array>* out) override {
100 if (in->type_id() == Type::NA) {
101 return MakeArrayOfNull(boolean(), in->length(), pool_).Value(out);
102 }
103 if (in->type_id() != Type::BOOL) {
104 return GenericConversionError(*out_type_, " from ", *in->type());
105 }
106 *out = in;
107 return Status::OK();
108 }
109};
110
111template <typename T>

Callers

nothing calls this directly

Calls 7

MakeArrayOfNullFunction · 0.85
GenericConversionErrorFunction · 0.70
OKFunction · 0.70
type_idMethod · 0.45
ValueMethod · 0.45
lengthMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected