Interface Csv.IReadBuilderBase<T, TSelf>
- Namespace
- FlameCsv
- Assembly
- FlameCsv.Core.dll
Base builder to create a CSV reading pipeline from.
public interface Csv.IReadBuilderBase<T, TSelf> where T : unmanaged, IBinaryInteger<T> where TSelf : Csv.IReadBuilderBase<T, TSelf>
Type Parameters
TTSelf
Properties
IOOptions
Options to configure I/O for the CSV reader, such as buffer size and buffer pool.
CsvIOOptions IOOptions { get; }
Property Value
Methods
AsParallel(CsvParallelOptions)
Configures the builder to read CSV data in parallel.
Csv.IParallelReadBuilder<T> AsParallel(CsvParallelOptions parallelOptions = default)
Parameters
parallelOptionsCsvParallelOptionsOptions to use for parallel reading. You can pass a cancellation token to implicitly convert it to CsvParallelOptions.
Returns
CreateReader(bool)
Creates a CSV buffer reader from the builder.
ICsvBufferReader<T> CreateReader(bool isAsync)
Parameters
isAsyncboolHint to the builder how the data will be read, for example to configure Asynchronous. The builder is free to ignore this parameter.
Returns
ToReader(CsvOptions<T>?)
Returns a reader instance that can be used to enumerate the raw CSV data.
The reader can be used directly in a foreach or await foreach loop.
CsvReader<T> ToReader(CsvOptions<T>? options = null)
Parameters
optionsCsvOptions<T>Options to use, Default used by default
Returns
- CsvReader<T>
A reader instance that reads CSV records from the data source.
WithIOOptions(in CsvIOOptions)
Configures the builder to use the given I/O options.
TSelf WithIOOptions(in CsvIOOptions ioOptions)
Parameters
ioOptionsCsvIOOptionsOptions to configure the buffer size and other IO related options
Returns
- TSelf