Class for record schemas. More...
Classes | |
class | RecordSchemaPair |
Public Member Functions | |
bool | Contains (string fieldName) |
Returns true if and only if the record contains a field by the given name. | |
bool | TryGetField (string fieldName, out Field field) |
bool | TryGetFieldAlias (string fieldName, out Field field) |
IEnumerator< Field > | GetEnumerator () |
Returns an enumerator which enumerates over the fields of this record schema. | |
override bool | Equals (object obj) |
Compares equality of two record schemas. | |
override int | GetHashCode () |
Hash code function. | |
override bool | CanRead (Schema writerSchema) |
Checks if this schema can read data written by the given schema. Used for decoding data. | |
Protected Member Functions | |
internal override void | WriteJsonFields (Newtonsoft.Json.JsonTextWriter writer, SchemaNames names, string encspace) |
Writes the records schema in JSON format. | |
Properties | |
List< Field > | Fields [get, set] |
List of fields in the record. | |
int | Count [get] |
Number of fields in the record. | |
Field | this[string name] [get] |
Returns the field with the given name. |
Class for record schemas.
override bool Avro.RecordSchema.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.
bool Avro.RecordSchema.Contains | ( | string | fieldName | ) | [inline] |
Returns true if and only if the record contains a field by the given name.
fieldName | The name of the field |
override bool Avro.RecordSchema.Equals | ( | object | obj | ) | [inline] |
Compares equality of two record schemas.
obj | record schema to compare against this schema |
IEnumerator<Field> Avro.RecordSchema.GetEnumerator | ( | ) | [inline] |
Returns an enumerator which enumerates over the fields of this record schema.
override int Avro.RecordSchema.GetHashCode | ( | ) | [inline] |
internal override void Avro.RecordSchema.WriteJsonFields | ( | Newtonsoft.Json.JsonTextWriter | writer, |
SchemaNames | names, | ||
string | encspace | ||
) | [inline, protected] |
Writes the records schema in JSON format.
writer | JSON writer |
names | list of named schemas already written |
encspace | enclosing namespace of the record schema |
Reimplemented from Avro.NamedSchema.
int Avro.RecordSchema.Count [get] |
Number of fields in the record.
List<Field> Avro.RecordSchema.Fields [get, set] |
List of fields in the record.
Field Avro.RecordSchema.this[string name] [get] |