Class for schemas of primitive types. More...
Public Member Functions | |
override bool | CanRead (Schema writerSchema) |
Checks if this schema can read data written by the given schema. Used for decoding data. | |
override bool | Equals (object obj) |
Function to compare equality of two primitive schemas. | |
override int | GetHashCode () |
Hashcode function. | |
Static Public Member Functions | |
static PrimitiveSchema | NewInstance (string type, PropertyMap props=null) |
Static function to return new instance of primitive schema. | |
Protected Member Functions | |
internal override void | WriteJson (JsonTextWriter w, SchemaNames names, string encspace) |
Writes primitive schema in JSON format. |
Class for schemas of primitive types.
override bool Avro.PrimitiveSchema.CanRead | ( | Schema | writerSchema | ) | [inline, virtual] |
Checks if this schema can read data written by the given schema. Used for decoding data.
writerSchema | writer schema |
Reimplemented from Avro.Schema.
override bool Avro.PrimitiveSchema.Equals | ( | object | obj | ) | [inline] |
Function to compare equality of two primitive schemas.
obj | other primitive schema |
override int Avro.PrimitiveSchema.GetHashCode | ( | ) | [inline] |
static PrimitiveSchema Avro.PrimitiveSchema.NewInstance | ( | string | type, |
PropertyMap | props = null |
||
) | [inline, static] |
Static function to return new instance of primitive schema.
type | primitive type |
internal override void Avro.PrimitiveSchema.WriteJson | ( | JsonTextWriter | w, |
SchemaNames | names, | ||
string | encspace | ||
) | [inline, protected, virtual] |
Writes primitive schema in JSON format.
w | |
names | |
encspace |
Reimplemented from Avro.Schema.