Struct arrow::json::reader::Reader [−][src]
pub struct Reader<R: Read> { /* fields omitted */ }
JSON file reader
Implementations
impl<R: Read> Reader<R>
[src]
impl<R: Read> Reader<R>
[src]pub fn new(
reader: R,
schema: SchemaRef,
batch_size: usize,
projection: Option<Vec<String>>
) -> Self
[src]
reader: R,
schema: SchemaRef,
batch_size: usize,
projection: Option<Vec<String>>
) -> Self
Create a new JSON Reader from any value that implements the Read
trait.
If reading a File
, you can customise the Reader, such as to enable schema
inference, use ReaderBuilder
.
pub fn from_buf_reader(
reader: BufReader<R>,
schema: SchemaRef,
batch_size: usize,
projection: Option<Vec<String>>
) -> Self
[src]
reader: BufReader<R>,
schema: SchemaRef,
batch_size: usize,
projection: Option<Vec<String>>
) -> Self
Create a new JSON Reader from a BufReader<R: Read>
To customize the schema, such as to enable schema inference, use ReaderBuilder
pub fn schema(&self) -> SchemaRef
[src]
Returns the schema of the reader, useful for getting the schema without reading record batches
pub fn next(&mut self) -> Result<Option<RecordBatch>>
[src]
Read the next batch of records
Trait Implementations
Auto Trait Implementations
impl<R> RefUnwindSafe for Reader<R> where
R: RefUnwindSafe,
impl<R> RefUnwindSafe for Reader<R> where
R: RefUnwindSafe,
impl<R> UnwindSafe for Reader<R> where
R: UnwindSafe,
impl<R> UnwindSafe for Reader<R> where
R: UnwindSafe,