Table of Contents

Class ParquetConnectorValidator

Namespace
Datafication.Connectors.ParquetConnector
Assembly
Datafication.ParquetConnector.dll

Validates configurations for Parquet data connectors.

public class ParquetConnectorValidator : IDataConnectorConfigurationValidator
Inheritance
object
ParquetConnectorValidator
Implements

Remarks

This validator ensures that the Parquet connector configuration is properly set up before attempting to connect to the data source. It validates the presence of required fields and the accessibility of the specified Parquet source.

Methods

Validate(IDataConnectorConfiguration)

Validates the provided configuration for a Parquet data connector.

public ValidationResult Validate(IDataConnectorConfiguration configuration)

Parameters

configuration IDataConnectorConfiguration

The configuration to validate.

Returns

ValidationResult

A validation result indicating whether the configuration is valid and any error messages if it is not.

Remarks

This method performs the following validations:

  1. Checks if the configuration is null
  2. Verifies if the configuration is of the correct type (ParquetConnectorConfiguration)
  3. Validates the presence of required fields (Id and Source)
  4. Ensures the source file exists (for file paths) or has a valid scheme (for URLs)
  5. Validates that the file has a .parquet extension if it's a file path