Class for fields defined in a record
More...
Class for fields defined in a record
Definition at line 30 of file Field.cs.
◆ SortOrder
Enum for the sorting order of record fields
Enumerator |
---|
ascending | |
descending | |
ignore | |
Definition at line 35 of file Field.cs.
◆ 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
Definition at line 200 of file Field.cs.
◆ GetHashCode()
override int Avro.Field.GetHashCode |
( |
| ) |
|
|
inline |
Hash code function
- Returns
Definition at line 228 of file Field.cs.
◆ GetProperty()
string Avro.Field.GetProperty |
( |
string |
key | ) |
|
|
inline |
Returns the field's custom property value given the property name
- Parameters
-
- Returns
- custom property value
Definition at line 188 of file Field.cs.
◆ writeJson()
internal void Avro.Field.writeJson |
( |
JsonTextWriter |
writer, |
|
|
SchemaNames |
names, |
|
|
string |
encspace |
|
) |
| |
|
inlineprotected |
Writes the Field class in JSON format
- Parameters
-
writer | JSON writer |
names | list of named schemas already written |
encspace | enclosing namespace for the field |
Definition at line 126 of file Field.cs.
◆ aliases
readonly IList<string> Avro.Field.aliases |
List of aliases for the field name
Definition at line 50 of file Field.cs.
◆ Name
readonly string Avro.Field.Name |
Name of the field.
Definition at line 45 of file Field.cs.
◆ DefaultValue
JToken Avro.Field.DefaultValue |
|
get |
The default value for the field stored as JSON object, if defined.
Otherwise, null.
Definition at line 65 of file Field.cs.
◆ Documentation
string Avro.Field.Documentation |
|
get |
Documentation for the field, if any.
Null if there is no documentation.
Definition at line 60 of file Field.cs.
◆ Ordering
Order of the field
Definition at line 70 of file Field.cs.
◆ Pos
Position of the field within its record.
Definition at line 55 of file Field.cs.
◆ Schema
The documentation for this class was generated from the following file:
- _build/public-os_ubuntu24.04-arch_amd64-cc_gcc_13.3.0/install/Avro/src/apache/main/Schema/Field.cs