Builder for constructing Avro schema JSON strings. More…
Public Member Functions | |
| AvroSchemaBuilder (string name) | |
| Creates a new AvroSchemaBuilder with the specified record name. | |
| AvroSchemaBuilder | Namespace (string ns) |
| Sets the namespace for the schema. | |
| AvroSchemaBuilder | Doc (string doc) |
| Sets the documentation for the schema. | |
| AvroSchemaBuilder | Field (string name, AvroType type) |
| Adds a field with the specified name and type. | |
| AvroSchemaBuilder | FieldWithDoc (string name, AvroType type, string doc) |
| Adds a field with documentation. | |
| AvroSchemaBuilder | NullableField (string name, AvroType type) |
| Adds a nullable field with the specified name and type. | |
| AvroSchemaBuilder | IntField (string name) |
| Adds an integer field. | |
| AvroSchemaBuilder | LongField (string name) |
| Adds a long field. | |
| AvroSchemaBuilder | FloatField (string name) |
| Adds a float field. | |
| AvroSchemaBuilder | DoubleField (string name) |
| Adds a double field. | |
| AvroSchemaBuilder | StringField (string name) |
| Adds a string field. | |
| AvroSchemaBuilder | BoolField (string name) |
| Adds a boolean field. | |
| AvroSchemaBuilder | BytesField (string name) |
| Adds a bytes field. | |
| AvroSchemaBuilder | TimestampField (string name) |
| Adds a timestamp field (long). | |
| AvroSchemaBuilder | NullableIntField (string name) |
| Adds a nullable integer field. | |
| AvroSchemaBuilder | NullableLongField (string name) |
| Adds a nullable long field. | |
| AvroSchemaBuilder | NullableFloatField (string name) |
| Adds a nullable float field. | |
| AvroSchemaBuilder | NullableDoubleField (string name) |
| Adds a nullable double field. | |
| AvroSchemaBuilder | NullableStringField (string name) |
| Adds a nullable string field. | |
| AvroSchemaBuilder | NullableBoolField (string name) |
| Adds a nullable boolean field. | |
| AvroSchemaBuilder | NullableBytesField (string name) |
| Adds a nullable bytes field. | |
| AvroSchemaBuilder | NullableTimestampField (string name) |
| Adds a nullable timestamp field. | |
| string | Build () |
| Builds the Avro schema JSON string. | |
Detailed Description
Builder for constructing Avro schema JSON strings.
Equivalent to Rust’s AvroSchemaBuilder.
Definition at line 40 of file AvroSchemaBuilder.cs.
Constructor & Destructor Documentation
◆ AvroSchemaBuilder()
| inline |
Creates a new AvroSchemaBuilder with the specified record name.
| name | The record type name. |
Definition at line 51 of file AvroSchemaBuilder.cs.
Member Function Documentation
◆ BoolField()
| inline |
Adds a boolean field.
Definition at line 144 of file AvroSchemaBuilder.cs.
◆ Build()
| inline |
Builds the Avro schema JSON string.
Definition at line 231 of file AvroSchemaBuilder.cs.
◆ BytesField()
| inline |
Adds a bytes field.
Definition at line 151 of file AvroSchemaBuilder.cs.
◆ Doc()
| inline |
Sets the documentation for the schema.
Definition at line 69 of file AvroSchemaBuilder.cs.
◆ DoubleField()
| inline |
Adds a double field.
Definition at line 130 of file AvroSchemaBuilder.cs.
◆ Field()
| inline |
Adds a field with the specified name and type.
Definition at line 80 of file AvroSchemaBuilder.cs.
◆ FieldWithDoc()
| inline |
Adds a field with documentation.
Definition at line 89 of file AvroSchemaBuilder.cs.
◆ FloatField()
| inline |
Adds a float field.
Definition at line 123 of file AvroSchemaBuilder.cs.
◆ IntField()
| inline |
Adds an integer field.
Definition at line 109 of file AvroSchemaBuilder.cs.
◆ LongField()
| inline |
Adds a long field.
Definition at line 116 of file AvroSchemaBuilder.cs.
◆ Namespace()
| inline |
Sets the namespace for the schema.
Definition at line 60 of file AvroSchemaBuilder.cs.
◆ NullableBoolField()
| inline |
Adds a nullable boolean field.
Definition at line 204 of file AvroSchemaBuilder.cs.
◆ NullableBytesField()
| inline |
Adds a nullable bytes field.
Definition at line 211 of file AvroSchemaBuilder.cs.
◆ NullableDoubleField()
| inline |
Adds a nullable double field.
Definition at line 190 of file AvroSchemaBuilder.cs.
◆ NullableField()
| inline |
Adds a nullable field with the specified name and type.
Definition at line 98 of file AvroSchemaBuilder.cs.
◆ NullableFloatField()
| inline |
Adds a nullable float field.
Definition at line 183 of file AvroSchemaBuilder.cs.
◆ NullableIntField()
| inline |
Adds a nullable integer field.
Definition at line 169 of file AvroSchemaBuilder.cs.
◆ NullableLongField()
| inline |
Adds a nullable long field.
Definition at line 176 of file AvroSchemaBuilder.cs.
◆ NullableStringField()
| inline |
Adds a nullable string field.
Definition at line 197 of file AvroSchemaBuilder.cs.
◆ NullableTimestampField()
| inline |
Adds a nullable timestamp field.
Definition at line 218 of file AvroSchemaBuilder.cs.
◆ StringField()
| inline |
Adds a string field.
Definition at line 137 of file AvroSchemaBuilder.cs.
◆ TimestampField()
| inline |
Adds a timestamp field (long).
Definition at line 158 of file AvroSchemaBuilder.cs.
The documentation for this class was generated from the following file:
- Kinetica/SchemaBuilder/AvroSchemaBuilder.cs