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

Method FromClass

python/pyarrow/src/arrow/python/extension_type.cc:200–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200Status PyExtensionType::FromClass(const std::shared_ptr<DataType> storage_type,
201 const std::string extension_name, PyObject* typ,
202 std::shared_ptr<ExtensionType>* out) {
203 Py_INCREF(typ);
204 out->reset(new PyExtensionType(storage_type, std::move(extension_name), typ));
205 return Status::OK();
206}
207
208Status RegisterPyExtensionType(const std::shared_ptr<DataType>& type) {
209 ARROW_DCHECK_EQ(type->id(), Type::EXTENSION);

Callers

nothing calls this directly

Calls 2

OKFunction · 0.50
resetMethod · 0.45

Tested by

no test coverage detected