Class MapSchema
Class for map schemas
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Avro
Assembly: Avro.dll
Syntax
public class MapSchema : UnnamedSchema
Properties
| Improve this Doc View SourceValueSchema
Schema for map values type
Declaration
public Schema ValueSchema { get; set; }
Property Value
Type | Description |
---|---|
Schema |
Methods
| Improve this Doc View SourceCanRead(Schema)
Checks if this schema can read data written by the given schema. Used for decoding data.
Declaration
public override bool CanRead(Schema writerSchema)
Parameters
Type | Name | Description |
---|---|---|
Schema | writerSchema | writer schema |
Returns
Type | Description |
---|---|
System.Boolean | true if this and writer schema are compatible based on the AVRO specification, false otherwise |
Overrides
| Improve this Doc View SourceCreateMap(Schema)
Declaration
public static MapSchema CreateMap(Schema type)
Parameters
Type | Name | Description |
---|---|---|
Schema | type |
Returns
Type | Description |
---|---|
MapSchema |
Equals(Object)
Compares equality of two map schemas
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | map schema to compare against this schema |
Returns
Type | Description |
---|---|
System.Boolean | true if two schemas are equal, false otherwise |
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Hashcode function
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
| Improve this Doc View SourceWriteJsonFields(JsonTextWriter, SchemaNames, String)
Writes map schema in JSON format
Declaration
protected override void WriteJsonFields(JsonTextWriter writer, SchemaNames names, string encspace)
Parameters
Type | Name | Description |
---|---|---|
Newtonsoft.Json.JsonTextWriter | writer | JSON writer |
SchemaNames | names | list of named schemas already written |
System.String | encspace | enclosing namespace of the map schema |