Struct arrow::json::reader::Reader [−][src]
pub struct Reader<R: Read> { /* fields omitted */ }
Expand description
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]
pub fn new(
reader: R,
schema: SchemaRef,
batch_size: usize,
projection: Option<Vec<String>>
) -> Self
[src]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]
pub fn from_buf_reader(
reader: BufReader<R>,
schema: SchemaRef,
batch_size: usize,
projection: Option<Vec<String>>
) -> Self
[src]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]
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]
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,
R: RefUnwindSafe,
impl<R> Send for Reader<R> where
R: Send,
R: Send,
impl<R> Sync for Reader<R> where
R: Sync,
R: Sync,
impl<R> Unpin for Reader<R> where
R: Unpin,
R: Unpin,
impl<R> UnwindSafe for Reader<R> where
R: UnwindSafe,
R: UnwindSafe,
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>,