Package-level declarations

Types

Link copied to clipboard

State.

Link copied to clipboard
sealed interface DestinationMessage

Internal representation of destination messages. These are intended to be specialized for usability. Data should be unmarshalled to these from front-line deserialized objects.

Link copied to clipboard
@Singleton
class DestinationMessageFactory(catalog: DestinationCatalog, @Named(value = "dataChannelMedium") dataChannelMedium: DataChannelMedium, namespaceMapper: NamespaceMapper, uuidGenerator: UUIDGenerator)
Link copied to clipboard
data class DestinationRecord(val stream: DestinationStream, val message: DestinationRecordSource, val serializedSizeBytes: Long, val checkpointId: CheckpointId? = null, val airbyteRawId: UUID) : DestinationMessage
Link copied to clipboard
value class DestinationRecordJsonSource(val source: AirbyteMessage) : DestinationRecordSource
Link copied to clipboard
value class DestinationRecordProtobufSource(val source: AirbyteMessage.AirbyteMessageProtobuf) : DestinationRecordSource
Link copied to clipboard
data class DestinationRecordRaw(val stream: DestinationStream, val rawData: DestinationRecordSource, val serializedSizeBytes: Long, val checkpointId: CheckpointId? = null, val airbyteRawId: UUID)
Link copied to clipboard
sealed interface DestinationRecordSource

A serialization-format agnostic wrapper for incoming DestinationRecord's. The record-level corollary to io.airbyte.cdk.load.data.AirbyteValueProxy, providing uniform access to both client data and metadata.

Link copied to clipboard
data class DestinationRecordStreamComplete(val stream: DestinationStream, val emittedAtMs: Long) : DestinationMessage
Link copied to clipboard
data class EnrichedDestinationRecordAirbyteValue(val stream: DestinationStream, val declaredFields: LinkedHashMap<String, EnrichedAirbyteValue>, val undeclaredFields: LinkedHashMap<String, JsonNode>, val emittedAtMs: Long, val sourceMeta: Meta, val serializedSizeBytes: Long = 0, extractedAtAsTimestampWithTimezone: Boolean = false, val airbyteRawId: UUID)
Link copied to clipboard
data class GlobalCheckpoint(val state: JsonNode?, val sourceStats: CheckpointMessage.Stats?, var destinationStats: CheckpointMessage.Stats? = null, val checkpoints: List<CheckpointMessage.Checkpoint> = emptyList(), val additionalProperties: Map<String, Any>, val originalTypeField: AirbyteStateMessage.AirbyteStateType? = AirbyteStateMessage.AirbyteStateType.GLOBAL, val serializedSizeBytes: Long, val checkpointKey: CheckpointKey? = null, var totalRecords: Long? = null, var totalBytes: Long? = null, var totalRejectedRecords: Long? = null, var additionalStats: MutableMap<String, Double> = mutableMapOf()) : CheckpointMessage
Link copied to clipboard
data class GlobalSnapshotCheckpoint(val state: JsonNode?, val sourceStats: CheckpointMessage.Stats?, var destinationStats: CheckpointMessage.Stats? = null, val checkpoints: List<CheckpointMessage.Checkpoint> = emptyList(), val additionalProperties: Map<String, Any>, val originalTypeField: AirbyteStateMessage.AirbyteStateType? = AirbyteStateMessage.AirbyteStateType.GLOBAL, val serializedSizeBytes: Long, val checkpointKey: CheckpointKey? = null, var totalRecords: Long? = null, var totalBytes: Long? = null, var totalRejectedRecords: Long? = null, var additionalStats: MutableMap<String, Double> = mutableMapOf(), val streamCheckpoints: Map<DestinationStream.Descriptor, CheckpointKey>) : CheckpointMessage
Link copied to clipboard

For messages, we recognize but do not want to process. Different from Undefined mainly in that we don't log a warning.

Link copied to clipboard
data class Meta(val changes: List<Meta.Change> = mutableListOf())
Link copied to clipboard
Link copied to clipboard
@Singleton
class ProtocolMessageDeserializer(destinationMessageFactory: DestinationMessageFactory)

Converts the internal @AirbyteMessage to the internal @DestinationMessage Ideally, this would not use protocol messages at all, but rather a specialized deserializer for routing.

Link copied to clipboard
data class StreamCheckpoint(val checkpoint: CheckpointMessage.Checkpoint, val sourceStats: CheckpointMessage.Stats?, var destinationStats: CheckpointMessage.Stats? = null, val additionalProperties: Map<String, Any> = emptyMap(), val serializedSizeBytes: Long, val checkpointKey: CheckpointKey? = null, var totalRecords: Long? = null, var totalBytes: Long? = null, var totalRejectedRecords: Long? = null, var additionalStats: MutableMap<String, Double> = mutableMapOf()) : CheckpointMessage
Link copied to clipboard

Catchall for anything unimplemented.

Functions

Link copied to clipboard
Link copied to clipboard