Skip to content

Commit

Permalink
Flatten arrow_buffer (#3883)
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold authored Mar 17, 2023
1 parent b9090ae commit 7f5f6b8
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion arrow-array/src/array/byte_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use crate::iterator::ArrayIter;
use crate::types::bytes::ByteArrayNativeType;
use crate::types::ByteArrayType;
use crate::{Array, ArrayAccessor, OffsetSizeTrait};
use arrow_buffer::buffer::OffsetBuffer;
use arrow_buffer::OffsetBuffer;
use arrow_buffer::{ArrowNativeType, Buffer};
use arrow_data::ArrayData;
use arrow_schema::DataType;
Expand Down
2 changes: 1 addition & 1 deletion arrow-array/src/array/list_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ use crate::builder::{GenericListBuilder, PrimitiveBuilder};
use crate::{
iterator::GenericListArrayIter, Array, ArrayAccessor, ArrayRef, ArrowPrimitiveType,
};
use arrow_buffer::buffer::OffsetBuffer;
use arrow_buffer::ArrowNativeType;
use arrow_buffer::OffsetBuffer;
use arrow_data::ArrayData;
use arrow_schema::{ArrowError, DataType, Field};
use num::Integer;
Expand Down
2 changes: 1 addition & 1 deletion arrow-array/src/array/map_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

use crate::array::{get_offsets, print_long_array};
use crate::{make_array, Array, ArrayRef, StringArray, StructArray};
use arrow_buffer::buffer::OffsetBuffer;
use arrow_buffer::OffsetBuffer;
use arrow_buffer::{ArrowNativeType, Buffer, ToByteSlice};
use arrow_data::ArrayData;
use arrow_schema::{ArrowError, DataType, Field};
Expand Down
3 changes: 1 addition & 2 deletions arrow-array/src/array/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
mod binary_array;

use crate::types::*;
use arrow_buffer::buffer::{OffsetBuffer, ScalarBuffer};
use arrow_buffer::ArrowNativeType;
use arrow_buffer::{ArrowNativeType, OffsetBuffer, ScalarBuffer};
use arrow_data::ArrayData;
use arrow_schema::{DataType, IntervalUnit, TimeUnit};
use std::any::Any;
Expand Down
3 changes: 1 addition & 2 deletions arrow-array/src/array/primitive_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ use crate::timezone::Tz;
use crate::trusted_len::trusted_len_unzip;
use crate::{types::*, ArrowNativeTypeOp};
use crate::{Array, ArrayAccessor};
use arrow_buffer::buffer::ScalarBuffer;
use arrow_buffer::{i256, ArrowNativeType, Buffer};
use arrow_buffer::{i256, ArrowNativeType, Buffer, ScalarBuffer};
use arrow_data::bit_iterator::try_for_each_valid_idx;
use arrow_data::ArrayData;
use arrow_schema::{ArrowError, DataType};
Expand Down
3 changes: 1 addition & 2 deletions arrow-array/src/array/run_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@

use std::any::Any;

use arrow_buffer::buffer::RunEndBuffer;
use arrow_buffer::ArrowNativeType;
use arrow_buffer::{ArrowNativeType, RunEndBuffer};
use arrow_data::{ArrayData, ArrayDataBuilder};
use arrow_schema::{ArrowError, DataType, Field};

Expand Down
3 changes: 1 addition & 2 deletions arrow-array/src/array/struct_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
// under the License.

use crate::{make_array, Array, ArrayRef};
use arrow_buffer::buffer::buffer_bin_or;
use arrow_buffer::Buffer;
use arrow_buffer::{buffer_bin_or, Buffer};
use arrow_data::ArrayData;
use arrow_schema::{ArrowError, DataType, Field};
use std::{any::Any, ops::Index};
Expand Down
2 changes: 1 addition & 1 deletion arrow-array/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
//!
//! [Arrow specification]: https://arrow.apache.org/docs/format/Columnar.html
//! [`&dyn Array`]: Array
//! [`NullBuffer`]: arrow_buffer::buffer::NullBuffer
//! [`NullBuffer`]: arrow_buffer::NullBuffer
//! [`Buffer`]: arrow_buffer::Buffer
//! [`compute`]: https://docs.rs/arrow/latest/arrow/compute/index.html
//! [`json`]: https://docs.rs/arrow/latest/arrow/json/index.html
Expand Down
2 changes: 1 addition & 1 deletion arrow-buffer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
pub mod alloc;
pub mod buffer;
pub use buffer::{Buffer, MutableBuffer};
pub use buffer::*;

mod bigint;
mod bytes;
Expand Down

0 comments on commit 7f5f6b8

Please sign in to comment.