Struct agnes::source::CsvSource
[−]
[src]
pub struct CsvSource { /* fields omitted */ }
CSV Data source. Contains location of data file, and computes CSV metadata. Can be turned into
CsvReader
object.
Methods
impl CsvSource
[src]
pub fn new(loc: FileLocator) -> Result<CsvSource>
[src]
Create a new CsvSource
object with provided file location. This constructor will analyze
(sniff) the file to detect its metadata (delimiter, quote character, field types, etc.)
Error
Fails if unable to open the file at the provided location, or if CSV analysis fails.
pub fn metadata(&self) -> &Metadata
[src]
Return the compute Metadata
for this CSV source.