From 33825599996c2938d601b6f2ad557658bb55e1af Mon Sep 17 00:00:00 2001 From: Ritchie Vink Date: Tue, 19 Jul 2022 21:46:27 +0200 Subject: [PATCH] implement MutableUtf8Array::into_data (#1170) --- src/array/utf8/mutable.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/array/utf8/mutable.rs b/src/array/utf8/mutable.rs index 12a81d5c34a..52150942370 100644 --- a/src/array/utf8/mutable.rs +++ b/src/array/utf8/mutable.rs @@ -241,6 +241,11 @@ impl MutableUtf8Array { validity.shrink_to_fit() } } + + /// Extract the low-end APIs from the [`MutableUtf8Array`]. + pub fn into_data(self) -> (DataType, Vec, Vec, Option) { + (self.data_type, self.offsets, self.values, self.validity) + } } impl MutableUtf8Array {