Class for schemas of primitive types.
More...
List of all members.
Public Member Functions |
| override bool | CanRead (Schema writerSchema) |
| | Checks if this schema can read data written by the given schema. Used for decoding data.
|
| override bool | Equals (object obj) |
| | Function to compare equality of two primitive schemas.
|
| override int | GetHashCode () |
| | Hashcode function.
|
Static Public Member Functions |
| static PrimitiveSchema | NewInstance (string type, PropertyMap props=null) |
| | Static function to return new instance of primitive schema.
|
Protected Member Functions |
| internal override void | WriteJson (JsonTextWriter w, SchemaNames names, string encspace) |
| | Writes primitive schema in JSON format.
|
Detailed Description
Class for schemas of primitive types.
Member Function Documentation
| override bool Avro::PrimitiveSchema::CanRead |
( |
Schema |
writerSchema | ) |
[inline, virtual] |
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.
| override bool Avro::PrimitiveSchema::Equals |
( |
object |
obj | ) |
[inline] |
Function to compare equality of two primitive schemas.
- Parameters:
-
| obj | other primitive schema |
- Returns:
- true two schemas are equal, false otherwise
| override int Avro::PrimitiveSchema::GetHashCode |
( |
| ) |
[inline] |
Hashcode function.
- Returns:
Reimplemented from Avro::Schema.
Static function to return new instance of primitive schema.
- Parameters:
-
- Returns:
| internal override void Avro::PrimitiveSchema::WriteJson |
( |
JsonTextWriter |
w, |
|
|
SchemaNames |
names, |
|
|
string |
encspace |
|
) |
| [inline, protected, virtual] |
Writes primitive schema in JSON format.
- Parameters:
-
Reimplemented from Avro::Schema.
The documentation for this class was generated from the following file:
- src/apache/main/Schema/PrimitiveSchema.cs