Class for fixed schemas.
More...
List of all members.
Public Member Functions |
override bool | Equals (object obj) |
| Compares two fixed schemas.
|
override int | GetHashCode () |
| Hash code function.
|
override bool | CanRead (Schema writerSchema) |
| Checks if this schema can read data written by the given schema. Used for decoding data.
|
Protected Member Functions |
internal override void | WriteJsonFields (Newtonsoft.Json.JsonTextWriter writer, SchemaNames names, string encspace) |
| Writes the fixed schema class in JSON format.
|
Properties |
int | Size [get, set] |
| Fixed size for the bytes.
|
Detailed Description
Member Function Documentation
Checks if this schema can read data written by the given schema. Used for decoding data.
- Parameters:
-
writerSchema | writer schema |
- Returns:
- true if this and writer schema are compatible based on the AVRO specification, false otherwise
Reimplemented from Avro.Schema.
Compares two fixed schemas.
- Parameters:
-
obj | fixed schema to compare against this schema |
- Returns:
- true if two schemas are the same, false otherwise
Hash code function.
- Returns:
Reimplemented from Avro.Schema.
Writes the fixed schema class in JSON format.
- Parameters:
-
writer | JSON writer |
names | list of named schema already written |
encspace | enclosing namespace for the fixed schema |
Reimplemented from Avro.NamedSchema.
Property Documentation
Fixed size for the bytes.
The documentation for this class was generated from the following file:
- src/apache/main/Schema/FixedSchema.cs