Class ParquetValueConverter<TValue, TPhysical>
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
TValueThe application value type.
TPhysicalA 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
ValueType
Gets the application value type handled by this converter.
public override sealed Type ValueType { get; }
Property Value
Methods
ConvertFromPhysical(ReadOnlySpan<TPhysical>, Span<TValue>)
Converts Parquet storage values into application values.
public virtual void ConvertFromPhysical(ReadOnlySpan<TPhysical> source, Span<TValue> destination)
Parameters
sourceReadOnlySpan<TPhysical>destinationSpan<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
valueTPhysical
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
sourceReadOnlySpan<TValue>destinationSpan<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
valueTValue
Returns
- TPhysical