truncate

fun truncate(newValue: AirbyteValue, reason: AirbyteRecordMessageMetaChange.Reason = Reason.DESTINATION_RECORD_SIZE_LIMITATION)

Creates a truncated version of this value with the specified reason and new value.

Parameters

reason

The Reason for truncation, defaults to DESTINATION_RECORD_SIZE_LIMITATION

newValue

The new (truncated) value to use