Avro C#
Public Member Functions | Protected Member Functions | Properties
Avro::FixedSchema Class Reference

Class for fixed schemas. More...

Inheritance diagram for Avro::FixedSchema:
Avro::NamedSchema Avro::Schema

List of all members.

Public Member Functions

override bool Equals (object obj)
 Compares two fixed 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 fixed schema class in JSON format.

Properties

int Size [get, set]
 Fixed size for the bytes.

Detailed Description

Class for fixed schemas.


Member Function Documentation

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

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

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

Reimplemented from Avro::Schema.

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

Compares two fixed schemas.

Parameters:
objfixed schema to compare against this schema
Returns:
true if two schemas are the same, false otherwise
override int Avro::FixedSchema::GetHashCode ( ) [inline]

Hash code function.

Returns:

Reimplemented from Avro::Schema.

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

Writes the fixed schema class in JSON format.

Parameters:
writerJSON writer
nameslist of named schema already written
encspaceenclosing namespace for the fixed schema

Reimplemented from Avro::NamedSchema.


Property Documentation

int Avro::FixedSchema::Size [get, set]

Fixed size for the bytes.


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