Table of Contents

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

CsvParallelOptions

Methods

WithParallelOptions(in CsvParallelOptions)

Configures the builder to use the given parallel options.

Csv.IParallelWriteBuilder<T> WithParallelOptions(in CsvParallelOptions parallelOptions)

Parameters

parallelOptions CsvParallelOptions

Options to use for parallel reading

Returns

Csv.IParallelWriteBuilder<T>

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

typeMap CsvTypeMap<T, TValue>
values IAsyncEnumerable<TValue>

Values to write

options CsvOptions<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

typeMap CsvTypeMap<T, TValue>

Type map used to bind the CSV data

values IEnumerable<TValue>

Values to write

options CsvOptions<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

values IAsyncEnumerable<TValue>

Values to write

options CsvOptions<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

values IEnumerable<TValue>

Values to write

options CsvOptions<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

typeMap CsvTypeMap<T, TValue>

Type map used to bind the CSV data

values IEnumerable<TValue>

Values to write

options CsvOptions<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

values IEnumerable<TValue>

Values to write

options CsvOptions<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.