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

Create a new Reader from the ReaderBuilder

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.