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: ArrowJsonSchema
§batches: Vec<ArrowJsonBatch>
§dictionaries: Option<Vec<ArrowJsonDictionaryBatch>>
Implementations§
source§impl 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§
source§impl<'de> Deserialize<'de> for ArrowJson
impl<'de> Deserialize<'de> for ArrowJson
source§fn 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 Freeze for ArrowJson
impl RefUnwindSafe for ArrowJson
impl Send for ArrowJson
impl Sync for ArrowJson
impl Unpin for ArrowJson
impl UnwindSafe for ArrowJson
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more