Struct arrow::json::reader::ReaderBuilder [−][src]
pub struct ReaderBuilder { /* fields omitted */ }
Expand description
JSON file reader builder
Implementations
Create a new builder for configuring JSON parsing options.
To convert a builder into a reader, call Reader::from_builder
Example
extern crate arrow; use arrow::json; use std::fs::File; fn example() -> json::Reader<File> { let file = File::open("test/data/basic.json").unwrap(); // create a builder, inferring the schema with the first 100 records let builder = json::ReaderBuilder::new().infer_schema(Some(100)); let reader = builder.build::<File>(file).unwrap(); reader }
Set the JSON file’s schema
Set the JSON reader to infer the schema of the file
Set the batch size (number of records to load at one time)
Set the reader’s column projection
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ReaderBuilder
impl Send for ReaderBuilder
impl Sync for ReaderBuilder
impl Unpin for ReaderBuilder
impl UnwindSafe for ReaderBuilder