Class for fields defined in a record.
More...
|
| | 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.
|
| |
| string | GetProperty (string key) |
| | Returns the field's custom property value given the property name.
|
| |
| override bool | Equals (object obj) |
| | Compares two field objects.
|
| |
| override int | GetHashCode () |
| | Hash code function.
|
| |
|
|
readonly string | Name |
| | Name of the field.
|
| |
|
|
IList< string > | Aliases [get] |
| | List of aliases for the field name.
|
| |
|
int | Pos [get] |
| | Position of the field within its record.
|
| |
|
string | Documentation [get] |
| | Documentation for the field, if any. Null if there is no documentation.
|
| |
|
JToken | DefaultValue [get] |
| | The default value for the field stored as JSON object, if defined. Otherwise, null.
|
| |
|
SortOrder? | Ordering [get] |
| | Order of the field.
|
| |
|
Schema | Schema [get] |
| | Field type's schema.
|
| |
Class for fields defined in a record.
◆ SortOrder
Enum for the sorting order of record fields.
| Enumerator |
|---|
| ascending | Ascending order.
|
| descending | Descending order.
|
| ignore | Ignore sort order.
|
◆ Field()
Initializes a new instance of the Field class.
- Parameters
-
| 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. |
◆ Equals()
| override bool Avro.Field.Equals |
( |
object |
obj | ) |
|
|
inline |
Compares two field objects.
- Parameters
-
| obj | field to compare with this field |
- Returns
- true if two fields are equal, false otherwise
◆ GetHashCode()
| override int Avro.Field.GetHashCode |
( |
| ) |
|
|
inline |
Hash code function.
- Returns
◆ GetProperty()
| string Avro.Field.GetProperty |
( |
string |
key | ) |
|
|
inline |
Returns the field's custom property value given the property name.
- Parameters
-
- Returns
- custom property value
The documentation for this class was generated from the following file:
- src/apache/main/Schema/Field.cs