Interface Csv.IParallelWriteBuilder<T>
- Namespace
- FlameCsv
- Assembly
- FlameCsv.Core.dll
Builder to create a parallel CSV writing pipeline from.
public interface Csv.IParallelWriteBuilder<T> : Csv.IWriteBuilderBase<T, Csv.IParallelWriteBuilder<T>> where T : unmanaged, IBinaryInteger<T>
Type Parameters
T
- Inherited Members
Properties
ParallelOptions
Options to use for parallel reading; chunk size, degree of parallelism, and cancellation token.
CsvParallelOptions ParallelOptions { get; }
Property Value
Methods
WithParallelOptions(in CsvParallelOptions)
Configures the builder to use the given parallel options.
Csv.IParallelWriteBuilder<T> WithParallelOptions(in CsvParallelOptions parallelOptions)
Parameters
parallelOptionsCsvParallelOptionsOptions to use for parallel reading
Returns
WriteAsync<TValue>(CsvTypeMap<T, TValue>, IAsyncEnumerable<TValue>, CsvOptions<T>?)
Writes CSV records to the target, binding them using reflection. Records are serialized in parallel. Order depends on Unordered.
Task WriteAsync<TValue>(CsvTypeMap<T, TValue> typeMap, IAsyncEnumerable<TValue> values, CsvOptions<T>? options = null)
Parameters
typeMapCsvTypeMap<T, TValue>valuesIAsyncEnumerable<TValue>Values to write
optionsCsvOptions<T>Options to use, Default used by default
Returns
- Task
A task that completes when writing has finished
Type Parameters
TValue
Remarks
A header or newline (depending on configuration) is written even if values is empty.
WriteAsync<TValue>(CsvTypeMap<T, TValue>, IEnumerable<TValue>, CsvOptions<T>?)
Writes CSV records to the target, binding them using the type map. Records are serialized in parallel. Order depends on Unordered.
[RequiresUnreferencedCode("This code path uses reflection. Use the overloads accepting source generated CsvTypeMap for AOT/trimming compatible code.")]
[RequiresDynamicCode("This code path uses compiled expressions. Use the overloads accepting source generated CsvTypeMap for AOT/trimming compatible code.")]
Task WriteAsync<TValue>(CsvTypeMap<T, TValue> typeMap, IEnumerable<TValue> values, CsvOptions<T>? options = null)
Parameters
typeMapCsvTypeMap<T, TValue>Type map used to bind the CSV data
valuesIEnumerable<TValue>Values to write
optionsCsvOptions<T>Options to use, Default used by default
Returns
- Task
A task that completes when writing has finished
Type Parameters
TValue
Remarks
A header or newline (depending on configuration) is written even if values is empty.
WriteAsync<TValue>(IAsyncEnumerable<TValue>, CsvOptions<T>?)
Writes CSV records to the target, binding them using reflection. Records are serialized in parallel. Order depends on Unordered.
[RequiresUnreferencedCode("This code path uses reflection. Use the overloads accepting source generated CsvTypeMap for AOT/trimming compatible code.")]
[RequiresDynamicCode("This code path uses compiled expressions. Use the overloads accepting source generated CsvTypeMap for AOT/trimming compatible code.")]
Task WriteAsync<TValue>(IAsyncEnumerable<TValue> values, CsvOptions<T>? options = null)
Parameters
valuesIAsyncEnumerable<TValue>Values to write
optionsCsvOptions<T>Options to use, Default used by default
Returns
- Task
A task that completes when writing has finished
Type Parameters
TValue
Remarks
A header or newline (depending on configuration) is written even if values is empty.
WriteAsync<TValue>(IEnumerable<TValue>, CsvOptions<T>?)
Writes CSV records to the target, binding them using reflection. Records are serialized in parallel. Order depends on Unordered.
[RequiresUnreferencedCode("This code path uses reflection. Use the overloads accepting source generated CsvTypeMap for AOT/trimming compatible code.")]
[RequiresDynamicCode("This code path uses compiled expressions. Use the overloads accepting source generated CsvTypeMap for AOT/trimming compatible code.")]
Task WriteAsync<TValue>(IEnumerable<TValue> values, CsvOptions<T>? options = null)
Parameters
valuesIEnumerable<TValue>Values to write
optionsCsvOptions<T>Options to use, Default used by default
Returns
- Task
A task that completes when writing has finished
Type Parameters
TValue
Remarks
A header or newline (depending on configuration) is written even if values is empty.
Write<TValue>(CsvTypeMap<T, TValue>, IEnumerable<TValue>, CsvOptions<T>?)
Writes CSV records to the target, binding them using the type map. Records are serialized in parallel. Order depends on Unordered.
void Write<TValue>(CsvTypeMap<T, TValue> typeMap, IEnumerable<TValue> values, CsvOptions<T>? options = null)
Parameters
typeMapCsvTypeMap<T, TValue>Type map used to bind the CSV data
valuesIEnumerable<TValue>Values to write
optionsCsvOptions<T>Options to use, Default used by default
Type Parameters
TValue
Remarks
A header or newline (depending on configuration) is written even if values is empty.
Write<TValue>(IEnumerable<TValue>, CsvOptions<T>?)
Writes CSV records to the target, binding them using reflection. Records are serialized in parallel. Order depends on Unordered.
[RequiresUnreferencedCode("This code path uses reflection. Use the overloads accepting source generated CsvTypeMap for AOT/trimming compatible code.")]
[RequiresDynamicCode("This code path uses compiled expressions. Use the overloads accepting source generated CsvTypeMap for AOT/trimming compatible code.")]
void Write<TValue>(IEnumerable<TValue> values, CsvOptions<T>? options = null)
Parameters
valuesIEnumerable<TValue>Values to write
optionsCsvOptions<T>Options to use, Default used by default
Type Parameters
TValue
Remarks
A header or newline (depending on configuration) is written even if values is empty.