Kinetica C# API
Version 7.2.3.0
|
Collection of static methods for generating the cannonical form of schemas. More...
Static Public Member Functions | |
static string | ToParsingForm (Schema s) |
Parses a schema into the canonical form as defined by Avro spec. More... | |
static byte [] | Fingerprint (string fpName, byte[] data) |
static byte [] | ParsingFingerprint (string fpName, Schema s) |
Returns Fingerprint(string, byte[]) applied to the parsing canonical form of the supplied schema. More... | |
static long | ParsingFingerprint64 (Schema s) |
Returns Fingerprint64(byte[]) applied to the parsing canonical form of the supplied schema. More... | |
Static Public Attributes | |
static long | Empty64 = -4513414715797952619 |
Collection of static methods for generating the cannonical form of schemas.
Definition at line 28 of file SchemaNormalization.cs.
|
inlinestatic |
Returns a fingerprint of a string of bytes. This string is presumed to contain a canonical form of a schema. The algorithm used to compute the fingerprint is selected by the argument fpName.
If fpName equals the string "CRC-64-AVRO"
, then the result of Fingerprint64(byte[]) is returned in little-endian format.
If fpName equals the string "MD5"
, then the standard MD5 algorithm is used.
If fpName equals the string "SHA-256"
, then the standard SHA-256 algorithm is used.
Otherwise, fpName is not recognized and an ArgumentException
is thrown
Recommended Avro practice dictiates that "CRC-64-AVRO"
is used for 64-bit fingerprints, "MD5"
is used for 128-bit fingerprints, and "SHA-256"
is used for 256-bit fingerprints.
fpName | Name of the hashing algorithm. |
data | Data to be hashed. |
Definition at line 72 of file SchemaNormalization.cs.
|
inlinestatic |
Returns Fingerprint(string, byte[]) applied to the parsing canonical form of the supplied schema.
fpName | Name of the hashing algorithm. |
s | Schema to be hashed. |
Definition at line 102 of file SchemaNormalization.cs.
|
inlinestatic |
Returns Fingerprint64(byte[]) applied to the parsing canonical form of the supplied schema.
s | Schema to be hashed. |
Definition at line 112 of file SchemaNormalization.cs.
|
inlinestatic |
Parses a schema into the canonical form as defined by Avro spec.
s | Schema |
Definition at line 37 of file SchemaNormalization.cs.
|
static |
Definition at line 30 of file SchemaNormalization.cs.