AvroSerializerOptionsBuilder
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Defined in: src/serialization/AvroSerializerOptions.ts:58
Fluent builder for AvroSerializerOptionsType:
const avroOptions = AvroSerializerOptions.create<Deposited>() .withAvroType(avroType) .withId(100);const serializer = new AvroSerializer(avroOptions);Extends
Section titled “Extends”Type Parameters
Section titled “Type Parameters”T = unknown
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AvroSerializerOptionsBuilder<
T>():AvroSerializerOptionsBuilder<T>
Returns
Section titled “Returns”AvroSerializerOptionsBuilder<T>
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”build()
Section titled “build()”build():
Partial<T>
Defined in: src/util/OptionsBuilder.ts:51
Snapshot the set fields as an independent Partial<T> (own props only).
Returns
Section titled “Returns”Partial<T>
Inherited from
Section titled “Inherited from”withAvroType()
Section titled “withAvroType()”withAvroType(
avroType):this
Defined in: src/serialization/AvroSerializerOptions.ts:66
The compiled Avro type that does the encoding.
Parameters
Section titled “Parameters”avroType
Section titled “avroType”AvroType<T>
Returns
Section titled “Returns”this
withId()
Section titled “withId()”withId(
id):this
Defined in: src/serialization/AvroSerializerOptions.ts:71
Wire identifier embedded in every frame. Must be >= 100.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”this
withManifest()
Section titled “withManifest()”withManifest(
manifest):this
Defined in: src/serialization/AvroSerializerOptions.ts:81
Manifest written alongside the bytes; '' writes none.
Parameters
Section titled “Parameters”manifest
Section titled “manifest”string
Returns
Section titled “Returns”this
withName()
Section titled “withName()”withName(
name):this
Defined in: src/serialization/AvroSerializerOptions.ts:76
Diagnostic name shown in error messages.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”this
create()
Section titled “create()”
staticcreate<T>():AvroSerializerOptionsBuilder<T>
Defined in: src/serialization/AvroSerializerOptions.ts:61
Start a fresh builder.
Type Parameters
Section titled “Type Parameters”T = unknown
Returns
Section titled “Returns”AvroSerializerOptionsBuilder<T>
