ValueCoercer

interface ValueCoercer

Interface for destination-specific field coercion and type representation.

Methods are called in this order during conversion:

  1. representAs() - override default type representation during protobuf extraction

  2. map() - transform values after initial conversion

  3. validate() - apply constraints and validation

Inheritors

Functions

Link copied to clipboard

Applies transformations to values after initial conversion. Called after AirbyteValue creation for data-dependent transformations.

Link copied to clipboard
open fun representAs(airbyteType: AirbyteType): Class<out AirbyteValue>?

Overrides how specific Airbyte types should be represented as AirbyteValue instances. Called during protobuf extraction phase before value creation.

Link copied to clipboard

Validates values against destination-specific constraints. Final step in coercion process - nullify values that fail validation.