Convert the given array's null values to a null bitmap. The null bitmap is only allocated if null values are ever possible.
| 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) { |
nothing calls this directly
no test coverage detected