Struct arrow_integration_test::ArrowJson
source · pub struct ArrowJson {
pub schema: ArrowJsonSchema,
pub batches: Vec<ArrowJsonBatch>,
pub dictionaries: Option<Vec<ArrowJsonDictionaryBatch>>,
}Expand description
A struct that represents an Arrow file with a schema and record batches
See https://github.com/apache/arrow/blob/master/docs/source/format/Integration.rst#json-test-data-format
Fields
schema: ArrowJsonSchemabatches: Vec<ArrowJsonBatch>dictionaries: Option<Vec<ArrowJsonDictionaryBatch>>Implementations
sourceimpl ArrowJson
impl ArrowJson
sourcepub fn equals_reader(&self, reader: &mut dyn RecordBatchReader) -> Result<bool>
pub fn equals_reader(&self, reader: &mut dyn RecordBatchReader) -> Result<bool>
Compare the Arrow JSON with a record batch reader
pub fn get_record_batches(&self) -> Result<Vec<RecordBatch>>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for ArrowJson
impl<'de> Deserialize<'de> for ArrowJson
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ArrowJson
impl Send for ArrowJson
impl Sync for ArrowJson
impl Unpin for ArrowJson
impl UnwindSafe for ArrowJson
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more