Show / Hide Table of Contents

Class FixedSchema

Class for fixed schemas

Inheritance
System.Object
Schema
NamedSchema
FixedSchema
Inherited Members
NamedSchema.SchemaName
NamedSchema.Name
NamedSchema.Namespace
NamedSchema.Fullname
NamedSchema.GetName(JToken, String)
NamedSchema.GetAliases(JToken, String, String)
NamedSchema.InAliases(SchemaName)
NamedSchema.WriteJson(JsonTextWriter, SchemaNames, String)
Schema.Tag
Schema.Parse(String)
Schema.ToString()
Schema.GetTypeString(Schema.Type)
Schema.GetProperty(String)
Schema.areEqual(Object, Object)
Schema.getHashCode(Object)
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 FixedSchema : NamedSchema

Properties

| Improve this Doc View Source

Size

Fixed size for the bytes

Declaration
public int Size { get; set; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

CanRead(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
Schema.CanRead(Schema)
| Improve this Doc View Source

Equals(Object)

Compares two fixed schemas

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

fixed schema to compare against this schema

Returns
Type Description
System.Boolean

true if two schemas are the same, false otherwise

Overrides
System.Object.Equals(System.Object)
| Improve this Doc View Source

GetHashCode()

Hash code function

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
Schema.GetHashCode()
| Improve this Doc View Source

WriteJsonFields(JsonTextWriter, SchemaNames, String)

Writes the fixed schema class 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 schema already written

System.String encspace

enclosing namespace for the fixed schema

Overrides
NamedSchema.WriteJsonFields(JsonTextWriter, SchemaNames, String)
  • Improve this Doc
  • View Source
Back to top Copyright © 2012 The Apache Software Foundation.