Table of Contents

Class ParquetValueConverter<TValue, TPhysical>

Namespace
Plank.Schema
Assembly
Plank.dll

Converts an unmanaged application value to and from a built-in unmanaged Parquet storage value.

public abstract class ParquetValueConverter<TValue, TPhysical> : ParquetValueConverter where TValue : unmanaged where TPhysical : unmanaged

Type Parameters

TValue

The application value type.

TPhysical

A CLR type natively supported by Plank for the column's physical type.

Inheritance
ParquetValueConverter<TValue, TPhysical>
Inherited Members

Properties

PhysicalType

Gets the built-in CLR storage type handled by this converter.

public override sealed Type PhysicalType { get; }

Property Value

Type

ValueType

Gets the application value type handled by this converter.

public override sealed Type ValueType { get; }

Property Value

Type

Methods

ConvertFromPhysical(ReadOnlySpan<TPhysical>, Span<TValue>)

Converts Parquet storage values into application values.

public virtual void ConvertFromPhysical(ReadOnlySpan<TPhysical> source, Span<TValue> destination)

Parameters

source ReadOnlySpan<TPhysical>
destination Span<TValue>

Remarks

Override this method to provide a vectorized conversion.

ConvertFromPhysical(TPhysical)

Converts one Parquet storage value to its application value.

public abstract TValue ConvertFromPhysical(TPhysical value)

Parameters

value TPhysical

Returns

TValue

ConvertToPhysical(ReadOnlySpan<TValue>, Span<TPhysical>)

Converts application values into Parquet storage values.

public virtual void ConvertToPhysical(ReadOnlySpan<TValue> source, Span<TPhysical> destination)

Parameters

source ReadOnlySpan<TValue>
destination Span<TPhysical>

Remarks

Override this method to provide a vectorized conversion.

ConvertToPhysical(TValue)

Converts one application value to its Parquet storage value.

public abstract TPhysical ConvertToPhysical(TValue value)

Parameters

value TValue

Returns

TPhysical