|
Avro C#
|
Class for fields defined in a record More...
Public Types | |
| enum | SortOrder { SortOrder.ascending, SortOrder.descending, SortOrder.ignore } |
| Enum for the sorting order of record fields More... | |
Public Member Functions | |
| Field (Schema schema, string name, int pos, IList< string > aliases=null, string doc=null, JToken defaultValue=null, SortOrder sortorder=SortOrder.ignore, PropertyMap customProperties=null) | |
| Initializes a new instance of the Field class. More... | |
| 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... | |
Properties | |
| IList< string > | Aliases [get] |
| List of aliases for the field name. More... | |
| 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... | |
Class for fields defined in a record
|
strong |
|
inline |
Initializes a new instance of the Field class.
| schema | schema for the field type. |
| name | name of the field. |
| aliases | list of aliases for the name of the field. |
| pos | position of the field. |
| doc | documentation for the field. |
| defaultValue | field's default value if it exists. |
| sortorder | sort order of the field. |
| customProperties | dictionary that provides access to custom properties. |
|
inline |
Compares two field objects
| obj | field to compare with this field |
|
inline |
Hash code function
|
inline |
Returns the field's custom property value given the property name
| key | custom property name |
| readonly string Avro.Field.Name |
Name of the field.
|
get |
List of aliases for the field name.
|
get |
The default value for the field stored as JSON object, if defined. Otherwise, null.
|
get |
Documentation for the field, if any. Null if there is no documentation.
|
get |
Order of the field
|
get |
Position of the field within its record.
1.8.17