Skip to main content

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.
 
 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.

var schema = new AvroSchemaBuilder(“SensorReading”)
.Namespace(“com.example”)
.IntField(“id”)
.StringField(“sensor_name”)
.NullableDoubleField(“value”)
.LongField(“timestamp”)
.Build();
AvroSchemaBuilder(string name)
Creates a new AvroSchemaBuilder with the specified record name.

Definition at line 40 of file AvroSchemaBuilder.cs.

Constructor & Destructor Documentation

◆ AvroSchemaBuilder() [1/2]

kinetica.SchemaBuilder.AvroSchemaBuilder.AvroSchemaBuilder (stringname)
inline

Creates a new AvroSchemaBuilder with the specified record name.

Parameters
nameThe record type name.

Definition at line 51 of file AvroSchemaBuilder.cs.

◆ AvroSchemaBuilder() [2/2]

kinetica.SchemaBuilder.AvroSchemaBuilder.AvroSchemaBuilder (stringname)
inline

Creates a new AvroSchemaBuilder with the specified record name.

Parameters
nameThe record type name.

Definition at line 51 of file AvroSchemaBuilder.cs.

Member Function Documentation

◆ BoolField() [1/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.BoolField (stringname)
inline

Adds a boolean field.

Definition at line 144 of file AvroSchemaBuilder.cs.

◆ BoolField() [2/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.BoolField (stringname)
inline

Adds a boolean field.

Definition at line 144 of file AvroSchemaBuilder.cs.

◆ Build() [1/2]

string kinetica.SchemaBuilder.AvroSchemaBuilder.Build ()
inline

Builds the Avro schema JSON string.

Definition at line 231 of file AvroSchemaBuilder.cs.

◆ Build() [2/2]

string kinetica.SchemaBuilder.AvroSchemaBuilder.Build ()
inline

Builds the Avro schema JSON string.

Definition at line 231 of file AvroSchemaBuilder.cs.

◆ BytesField() [1/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.BytesField (stringname)
inline

Adds a bytes field.

Definition at line 151 of file AvroSchemaBuilder.cs.

◆ BytesField() [2/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.BytesField (stringname)
inline

Adds a bytes field.

Definition at line 151 of file AvroSchemaBuilder.cs.

◆ Doc() [1/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.Doc (stringdoc)
inline

Sets the documentation for the schema.

Definition at line 69 of file AvroSchemaBuilder.cs.

◆ Doc() [2/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.Doc (stringdoc)
inline

Sets the documentation for the schema.

Definition at line 69 of file AvroSchemaBuilder.cs.

◆ DoubleField() [1/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.DoubleField (stringname)
inline

Adds a double field.

Definition at line 130 of file AvroSchemaBuilder.cs.

◆ DoubleField() [2/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.DoubleField (stringname)
inline

Adds a double field.

Definition at line 130 of file AvroSchemaBuilder.cs.

◆ Field() [1/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.Field (stringname,
AvroTypetype )
inline

Adds a field with the specified name and type.

Definition at line 80 of file AvroSchemaBuilder.cs.

◆ Field() [2/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.Field (stringname,
AvroTypetype )
inline

Adds a field with the specified name and type.

Definition at line 80 of file AvroSchemaBuilder.cs.

◆ FieldWithDoc() [1/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.FieldWithDoc (stringname,
AvroTypetype,
stringdoc )
inline

Adds a field with documentation.

Definition at line 89 of file AvroSchemaBuilder.cs.

◆ FieldWithDoc() [2/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.FieldWithDoc (stringname,
AvroTypetype,
stringdoc )
inline

Adds a field with documentation.

Definition at line 89 of file AvroSchemaBuilder.cs.

◆ FloatField() [1/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.FloatField (stringname)
inline

Adds a float field.

Definition at line 123 of file AvroSchemaBuilder.cs.

◆ FloatField() [2/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.FloatField (stringname)
inline

Adds a float field.

Definition at line 123 of file AvroSchemaBuilder.cs.

◆ IntField() [1/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.IntField (stringname)
inline

Adds an integer field.

Definition at line 109 of file AvroSchemaBuilder.cs.

◆ IntField() [2/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.IntField (stringname)
inline

Adds an integer field.

Definition at line 109 of file AvroSchemaBuilder.cs.

◆ LongField() [1/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.LongField (stringname)
inline

Adds a long field.

Definition at line 116 of file AvroSchemaBuilder.cs.

◆ LongField() [2/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.LongField (stringname)
inline

Adds a long field.

Definition at line 116 of file AvroSchemaBuilder.cs.

◆ Namespace() [1/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.Namespace (stringns)
inline

Sets the namespace for the schema.

Definition at line 60 of file AvroSchemaBuilder.cs.

◆ Namespace() [2/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.Namespace (stringns)
inline

Sets the namespace for the schema.

Definition at line 60 of file AvroSchemaBuilder.cs.

◆ NullableBoolField() [1/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.NullableBoolField (stringname)
inline

Adds a nullable boolean field.

Definition at line 204 of file AvroSchemaBuilder.cs.

◆ NullableBoolField() [2/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.NullableBoolField (stringname)
inline

Adds a nullable boolean field.

Definition at line 204 of file AvroSchemaBuilder.cs.

◆ NullableBytesField() [1/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.NullableBytesField (stringname)
inline

Adds a nullable bytes field.

Definition at line 211 of file AvroSchemaBuilder.cs.

◆ NullableBytesField() [2/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.NullableBytesField (stringname)
inline

Adds a nullable bytes field.

Definition at line 211 of file AvroSchemaBuilder.cs.

◆ NullableDoubleField() [1/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.NullableDoubleField (stringname)
inline

Adds a nullable double field.

Definition at line 190 of file AvroSchemaBuilder.cs.

◆ NullableDoubleField() [2/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.NullableDoubleField (stringname)
inline

Adds a nullable double field.

Definition at line 190 of file AvroSchemaBuilder.cs.

◆ NullableField() [1/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.NullableField (stringname,
AvroTypetype )
inline

Adds a nullable field with the specified name and type.

Definition at line 98 of file AvroSchemaBuilder.cs.

◆ NullableField() [2/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.NullableField (stringname,
AvroTypetype )
inline

Adds a nullable field with the specified name and type.

Definition at line 98 of file AvroSchemaBuilder.cs.

◆ NullableFloatField() [1/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.NullableFloatField (stringname)
inline

Adds a nullable float field.

Definition at line 183 of file AvroSchemaBuilder.cs.

◆ NullableFloatField() [2/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.NullableFloatField (stringname)
inline

Adds a nullable float field.

Definition at line 183 of file AvroSchemaBuilder.cs.

◆ NullableIntField() [1/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.NullableIntField (stringname)
inline

Adds a nullable integer field.

Definition at line 169 of file AvroSchemaBuilder.cs.

◆ NullableIntField() [2/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.NullableIntField (stringname)
inline

Adds a nullable integer field.

Definition at line 169 of file AvroSchemaBuilder.cs.

◆ NullableLongField() [1/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.NullableLongField (stringname)
inline

Adds a nullable long field.

Definition at line 176 of file AvroSchemaBuilder.cs.

◆ NullableLongField() [2/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.NullableLongField (stringname)
inline

Adds a nullable long field.

Definition at line 176 of file AvroSchemaBuilder.cs.

◆ NullableStringField() [1/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.NullableStringField (stringname)
inline

Adds a nullable string field.

Definition at line 197 of file AvroSchemaBuilder.cs.

◆ NullableStringField() [2/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.NullableStringField (stringname)
inline

Adds a nullable string field.

Definition at line 197 of file AvroSchemaBuilder.cs.

◆ NullableTimestampField() [1/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.NullableTimestampField (stringname)
inline

Adds a nullable timestamp field.

Definition at line 218 of file AvroSchemaBuilder.cs.

◆ NullableTimestampField() [2/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.NullableTimestampField (stringname)
inline

Adds a nullable timestamp field.

Definition at line 218 of file AvroSchemaBuilder.cs.

◆ StringField() [1/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.StringField (stringname)
inline

Adds a string field.

Definition at line 137 of file AvroSchemaBuilder.cs.

◆ StringField() [2/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.StringField (stringname)
inline

Adds a string field.

Definition at line 137 of file AvroSchemaBuilder.cs.

◆ TimestampField() [1/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.TimestampField (stringname)
inline

Adds a timestamp field (long).

Definition at line 158 of file AvroSchemaBuilder.cs.

◆ TimestampField() [2/2]

AvroSchemaBuilder kinetica.SchemaBuilder.AvroSchemaBuilder.TimestampField (stringname)
inline

Adds a timestamp field (long).

Definition at line 158 of file AvroSchemaBuilder.cs.


The documentation for this class was generated from the following files: