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

Method Convert

python/pyarrow/src/arrow/python/numpy_to_arrow.cc:115–123  ·  view source on GitHub ↗

Convert the given array's null values to a null bitmap. The null bitmap is only allocated if null values are ever possible.

Source from the content-addressed store, hash-verified

113 /// Convert the given array's null values to a null bitmap.
114 /// The null bitmap is only allocated if null values are ever possible.
115 static Status Convert(MemoryPool* pool, PyArrayObject* arr, bool from_pandas,
116 std::shared_ptr<ResizableBuffer>* out_null_bitmap_,
117 int64_t* out_null_count) {
118 NumPyNullsConverter converter(pool, arr, from_pandas);
119 RETURN_NOT_OK(VisitNumpyArrayInline(arr, &converter));
120 *out_null_bitmap_ = converter.null_bitmap_;
121 *out_null_count = converter.null_count_;
122 return Status::OK();
123 }
124
125 template <int TYPE>
126 Status Visit(PyArrayObject* arr) {

Callers

nothing calls this directly

Calls 2

VisitNumpyArrayInlineFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected