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

Method Convert

python/pyarrow/src/arrow/python/numpy_to_arrow.cc:114–122  ·  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

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

Callers

nothing calls this directly

Calls 2

VisitNumpyArrayInlineFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected