Skip to main content

Module traits

Module traits 

Source
Expand description

Capability traits for the extensible connector framework.

Six traits define the schema capabilities a connector can implement:

TraitPurposeSync/Async
FormatDecoderDecode raw bytes → ArrowSync
FormatEncoderEncode Arrow → raw bytesSync
SchemaProviderAuthoritative schema from sourceAsync
SchemaInferableSample-based schema inferenceAsync
SchemaRegistryAwareSchema registry integrationAsync
SchemaEvolvableSchema evolution & diffingSync

Connectors opt in to capabilities by implementing the relevant traits and returning Some(self) from the corresponding as_*() method on SourceConnector or SinkConnector.

Structs§

ColumnProjection
Describes how to project columns from the old schema to the new schema.
ConfigOption
A single configuration option in a connector’s config schema.
ConnectorConfigSchema
Self-describing connector configuration schema.
FieldInferenceDetail
Per-field detail from inference.
InferenceConfig
Configuration for schema inference.
InferenceWarning
A warning generated during inference.
InferredSchema
The result of schema inference.
RegisteredSchema
A schema registered in a schema registry.
RegistryConfig
Configuration for connecting to a schema registry.
RegistryCredentials
Credentials for schema registry authentication.

Enums§

ArrayInference
How to infer array/object types in JSON.
CompatibilityMode
Compatibility mode for schema evolution.
ConfigValueType
The expected type of a configuration value.
EvolutionVerdict
The result of evaluating a set of schema changes.
NumberInference
How to infer numeric types.
RegistrySchemaType
Schema type stored in the registry.
SchemaChange
A single schema change detected by SchemaEvolvable::diff_schemas.
WarningSeverity
Severity level for inference warnings.

Traits§

FormatDecoder
Decodes raw bytes into Arrow RecordBatches.
FormatEncoder
Encodes Arrow RecordBatches into raw bytes.
SchemaEvolvable
A connector that supports schema evolution.
SchemaInferable
A connector that supports sample-based schema inference.
SchemaProvider
A connector that can provide its schema from the source system.
SchemaRegistryAware
A connector that integrates with a schema registry.