[−][src]Struct arrow::csv::reader::Reader
CSV file reader
Implementations
impl<R: Read> Reader<R>
[src]
pub fn new(
reader: R,
schema: SchemaRef,
has_header: bool,
delimiter: Option<u8>,
batch_size: usize,
projection: Option<Vec<usize>>
) -> Self
[src]
reader: R,
schema: SchemaRef,
has_header: bool,
delimiter: Option<u8>,
batch_size: usize,
projection: Option<Vec<usize>>
) -> Self
Create a new CsvReader from any value that implements the Read
trait.
If reading a File
or an input that supports std::io::Read
and std::io::Seek
;
you can customise the Reader, 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 from_buf_reader(
buf_reader: BufReader<R>,
schema: SchemaRef,
has_header: bool,
delimiter: Option<u8>,
batch_size: usize,
projection: Option<Vec<usize>>
) -> Self
[src]
buf_reader: BufReader<R>,
schema: SchemaRef,
has_header: bool,
delimiter: Option<u8>,
batch_size: usize,
projection: Option<Vec<usize>>
) -> Self
Create a new CsvReader from a `BufReader<R: Read>
This constructor allows you more flexibility in what records are processed by the csv reader.
pub fn next(&mut self) -> Result<Option<RecordBatch>>
[src]
Read the next batch of rows
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,