Struct arrow::json::reader::ReaderBuilder [−][src]
pub struct ReaderBuilder { /* fields omitted */ }
Expand description
JSON file reader builder
Implementations
impl ReaderBuilder
[src]
impl ReaderBuilder
[src]pub fn new() -> Self
[src]
pub fn new() -> Self
[src]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 }
pub fn with_schema(self, schema: SchemaRef) -> Self
[src]
pub fn with_schema(self, schema: SchemaRef) -> Self
[src]Set the JSON file’s schema
pub fn infer_schema(self, max_records: Option<usize>) -> Self
[src]
pub fn infer_schema(self, max_records: Option<usize>) -> Self
[src]Set the JSON reader to infer the schema of the file
pub fn with_batch_size(self, batch_size: usize) -> Self
[src]
pub fn with_batch_size(self, batch_size: usize) -> Self
[src]Set the batch size (number of records to load at one time)
pub fn with_projection(self, projection: Vec<String>) -> Self
[src]
pub fn with_projection(self, projection: Vec<String>) -> Self
[src]Set the reader’s column projection
Trait Implementations
impl Debug for ReaderBuilder
[src]
impl Debug for ReaderBuilder
[src]Auto Trait Implementations
impl RefUnwindSafe for ReaderBuilder
impl Send for ReaderBuilder
impl Sync for ReaderBuilder
impl Unpin for ReaderBuilder
impl UnwindSafe for ReaderBuilder
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,