Export to the C Data Interface
(data: &ArrayData)
| 269 | |
| 270 | /// Export to the C Data Interface |
| 271 | pub fn to_ffi(data: &ArrayData) -> Result<(FFI_ArrowArray, FFI_ArrowSchema)> { |
| 272 | let array = FFI_ArrowArray::new(data); |
| 273 | let schema = FFI_ArrowSchema::try_from(data.data_type())?; |
| 274 | Ok((array, schema)) |
| 275 | } |
| 276 | |
| 277 | /// Import [ArrayData] from the C Data Interface |
| 278 | /// |