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
The Arrow schema for JSON file
batches: Vec<ArrowJsonBatch>
The RecordBatch
es in the JSON file
dictionaries: Option<Vec<ArrowJsonDictionaryBatch>>
The dictionaries in the JSON file
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
Sourcepub fn get_record_batches(&self) -> Result<Vec<RecordBatch>>
pub fn get_record_batches(&self) -> Result<Vec<RecordBatch>>
Convert the stored dictionaries to 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