[][src]Struct arrow::csv::reader::Reader

pub struct Reader<R: Read> { /* fields omitted */ }

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,
    bounds: Option<(usize, usize)>,
    projection: Option<Vec<usize>>
) -> Self
[src]

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_reader(
    reader: R,
    schema: SchemaRef,
    has_header: bool,
    delimiter: Option<u8>,
    batch_size: usize,
    bounds: Option<(usize, usize)>,
    projection: Option<Vec<usize>>
) -> Self
[src]

Create a new CsvReader from a Reader

This constructor allows you more flexibility in what records are processed by the csv reader.

Trait Implementations

impl<R> Debug for Reader<R> where
    R: Read
[src]

impl<R: Read> Iterator for Reader<R>[src]

type Item = Result<RecordBatch>

The type of the elements being iterated over.

Auto Trait Implementations

impl<R> RefUnwindSafe for Reader<R> where
    R: RefUnwindSafe
[src]

impl<R> Send for Reader<R> where
    R: Send
[src]

impl<R> Sync for Reader<R> where
    R: Sync
[src]

impl<R> Unpin for Reader<R> where
    R: Unpin
[src]

impl<R> UnwindSafe for Reader<R> where
    R: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,