Function arrow::csv::reader::infer_reader_schema [−][src]
pub fn infer_reader_schema<R: Read>(
reader: &mut R,
delimiter: u8,
max_read_records: Option<usize>,
has_header: bool
) -> Result<(Schema, usize)>
Expand description
Infer schema of CSV records provided by struct that implements Read
trait.
max_read_records
controlling the maximum number of records to read. If max_read_records
is
not set, all records are read to infer the schema.
Return infered schema and number of records used for inference.