Avro C#
 All Classes Namespaces Functions Variables Enumerations Properties
Public Types | Public Member Functions | Public Attributes | Properties | List of all members
Avro.Field Class Reference

Class for fields defined in a record More...

Public Types

enum  SortOrder { ascending, descending, ignore }
 Enum for the sorting order of record fields More...
 

Public Member Functions

string GetProperty (string key)
 Returns the field's custom property value given the property name More...
 
override bool Equals (object obj)
 Compares two field objects More...
 
override int GetHashCode ()
 Hash code function More...
 

Public Attributes

readonly string Name
 Name of the field. More...
 
readonly IList< string > aliases
 List of aliases for the field name More...
 

Properties

int Pos [get]
 Position of the field within its record. More...
 
string Documentation [get]
 Documentation for the field, if any. Null if there is no documentation. More...
 
JToken DefaultValue [get]
 The default value for the field stored as JSON object, if defined. Otherwise, null. More...
 
SortOrder Ordering [get]
 Order of the field More...
 
Schema Schema [get]
 Field type's schema More...
 

Detailed Description

Class for fields defined in a record

Member Enumeration Documentation

Enum for the sorting order of record fields

Member Function Documentation

override bool Avro.Field.Equals ( object  obj)
inline

Compares two field objects

Parameters
objfield to compare with this field
Returns
true if two fields are equal, false otherwise
override int Avro.Field.GetHashCode ( )
inline

Hash code function

Returns
string Avro.Field.GetProperty ( string  key)
inline

Returns the field's custom property value given the property name

Parameters
keycustom property name
Returns
custom property value

Member Data Documentation

readonly IList<string> Avro.Field.aliases

List of aliases for the field name

readonly string Avro.Field.Name

Name of the field.

Property Documentation

JToken Avro.Field.DefaultValue
get

The default value for the field stored as JSON object, if defined. Otherwise, null.

string Avro.Field.Documentation
get

Documentation for the field, if any. Null if there is no documentation.

SortOrder Avro.Field.Ordering
get

Order of the field

int Avro.Field.Pos
get

Position of the field within its record.

Schema Avro.Field.Schema
get

Field type's schema


The documentation for this class was generated from the following file: