Public Member Functions | Protected Member Functions | Properties

Avro::MapSchema Class Reference

Class for map schemas. More...

Inheritance diagram for Avro::MapSchema:
Avro::UnnamedSchema Avro::Schema

List of all members.

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)
 Compares equality of two map schemas.
override int GetHashCode ()
 Hashcode function.

Protected Member Functions

internal override void WriteJsonFields (Newtonsoft.Json.JsonTextWriter writer, SchemaNames names, string encspace)
 Writes map schema in JSON format.

Properties

Schema ValueSchema [get, set]
 Schema for map values type.

Detailed Description

Class for map schemas.


Member Function Documentation

override bool Avro::MapSchema::CanRead ( Schema  writerSchema  )  [inline, virtual]

Checks if this schema can read data written by the given schema. Used for decoding data.

Parameters:
writerSchema writer schema
Returns:
true if this and writer schema are compatible based on the AVRO specification, false otherwise

Reimplemented from Avro::Schema.

override bool Avro::MapSchema::Equals ( object  obj  )  [inline]

Compares equality of two map schemas.

Parameters:
obj map schema to compare against this schema
Returns:
true if two schemas are equal, false otherwise
override int Avro::MapSchema::GetHashCode (  )  [inline]

Hashcode function.

Returns:

Reimplemented from Avro::Schema.

internal override void Avro::MapSchema::WriteJsonFields ( Newtonsoft.Json.JsonTextWriter  writer,
SchemaNames  names,
string  encspace 
) [inline, protected]

Writes map schema in JSON format.

Parameters:
writer JSON writer
names list of named schemas already written
encspace enclosing namespace of the map schema

Property Documentation

Schema Avro::MapSchema::ValueSchema [get, set]

Schema for map values type.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties