SerdePipeline

@ApiStatus.Internal
class SerdePipeline

Combines a SerdeFactory and a PayloadCodec: resolves the Serde from the TypeTag, then serializes and encodes, or decodes and deserializes, the values.

Constructors

Link copied to clipboard
constructor(serdeFactory: SerdeFactory, @Nullable payloadCodec: @Nullable PayloadCodec)

Functions

Link copied to clipboard
open fun <T> decode(typeTag: TypeTag<T>, value: Slice): CompletableFuture<T>
Decode the value, then resolve the serde and deserialize it.
Link copied to clipboard
open fun <T> encode(typeTag: TypeTag<T>, value: T): CompletableFuture<Slice>
Resolve the serde, serialize the value, then encode it.
Link copied to clipboard
Link copied to clipboard