Public Member Functions | Static Public Member Functions | Protected Member Functions

Avro::PrimitiveSchema Class Reference

Class for schemas of primitive types. More...

Inheritance diagram for Avro::PrimitiveSchema:
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)
 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.

Detailed Description

Class for schemas of primitive types.


Member Function Documentation

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.

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::PrimitiveSchema::Equals ( object  obj  )  [inline]

Function to compare equality of two primitive schemas.

Parameters:
obj other primitive schema
Returns:
true two schemas are equal, false otherwise
override int Avro::PrimitiveSchema::GetHashCode (  )  [inline]

Hashcode function.

Returns:

Reimplemented from Avro::Schema.

static PrimitiveSchema Avro::PrimitiveSchema::NewInstance ( string  type,
PropertyMap  props = null 
) [inline, static]

Static function to return new instance of primitive schema.

Parameters:
type primitive type
Returns:
internal override void Avro::PrimitiveSchema::WriteJson ( JsonTextWriter  w,
SchemaNames  names,
string  encspace 
) [inline, protected, virtual]

Writes primitive schema in JSON format.

Parameters:
w 
names 
encspace 

Reimplemented from Avro::Schema.


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