Table of Contents

Class ParquetDataProvider

Namespace
Datafication.Factories.ParquetConnector
Assembly
Datafication.ParquetConnector.dll

Represents a factory for creating Parquet data connectors based on the provided configuration.

public class ParquetDataProvider : IDataConnectorFactory
Inheritance
object
ParquetDataProvider
Implements

Remarks

This factory produces instances of ParquetDataConnector based on the provided ParquetConnectorConfiguration. It ensures that the right type of configuration is passed before creating the connector.

Constructors

ParquetDataProvider()

Initializes a new instance of the ParquetDataProvider class.

public ParquetDataProvider()

Methods

CreateDataConnector(IDataConnectorConfiguration)

Creates a new instance of a Parquet data connector using the specified configuration.

public IDataConnector CreateDataConnector(IDataConnectorConfiguration configuration)

Parameters

configuration IDataConnectorConfiguration

The configuration to use for the creation of the Parquet data connector.

Returns

IDataConnector

A new instance of a ParquetDataConnector.

Remarks

This method checks the type of the passed configuration to ensure it's a ParquetConnectorConfiguration. If not, an exception is thrown to indicate an invalid configuration type.

Exceptions

ArgumentException

Thrown when an invalid or unsupported configuration type is provided or when validation fails.