Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
implement MutableUtf8Array::into_data (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 authored Jul 19, 2022
1 parent cac624c commit 3382559
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/array/utf8/mutable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,11 @@ impl<O: Offset> MutableUtf8Array<O> {
validity.shrink_to_fit()
}
}

/// Extract the low-end APIs from the [`MutableUtf8Array`].
pub fn into_data(self) -> (DataType, Vec<O>, Vec<u8>, Option<MutableBitmap>) {
(self.data_type, self.offsets, self.values, self.validity)
}
}

impl<O: Offset> MutableUtf8Array<O> {
Expand Down

0 comments on commit 3382559

Please sign in to comment.