[−][src]Struct arrow::json::reader::Reader
JSON file reader
Methods
impl<R: Read> Reader<R>
[src]
pub fn new(
reader: BufReader<R>,
schema: Arc<Schema>,
batch_size: usize,
projection: Option<Vec<String>>
) -> Self
[src]
reader: BufReader<R>,
schema: Arc<Schema>,
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 schema(&self) -> Arc<Schema>
[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
Auto Trait Implementations
impl<R> Sync for Reader<R> where
R: Sync,
R: Sync,
impl<R> Unpin for Reader<R> where
R: Unpin,
R: Unpin,
impl<R> Send for Reader<R> where
R: Send,
R: Send,
impl<R> UnwindSafe for Reader<R> where
R: UnwindSafe,
R: UnwindSafe,
impl<R> RefUnwindSafe for Reader<R> where
R: RefUnwindSafe,
R: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> FromCast<T> for T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
[src]
U: FromCast<T>,