Trait arrow2_convert::serialize::FlattenChunk
source · pub trait FlattenChunk {
// Required method
fn flatten(self) -> Result<Chunk<Box<dyn Array>>, Error>;
}
Expand description
API to flatten a Chunk consisting of an arrow2::array::StructArray
into a Chunk
consisting of arrow2::array::Array
s contained by the StructArray
Required Methods§
sourcefn flatten(self) -> Result<Chunk<Box<dyn Array>>, Error>
fn flatten(self) -> Result<Chunk<Box<dyn Array>>, Error>
Convert an arrow2::chunk::Chunk
containing a arrow2::array::StructArray
to an arrow2::chunk::Chunk
consisting of the
arrow::array::Array
s contained by the StructArray
by consuming the
original Chunk
. Returns an error if the Chunk
cannot be flattened.