Class: Avro::Schema

Inherits:
Object
  • Object
show all
Defined in:
lib/avro/resolution_fingerprint.rb

Instance Method Summary collapse

Instance Method Details

#sha256_resolution_fingerprintObject

Returns the SHA-256 fingerprint of the Resolution Canonical Form for the schema as an Integer



5
6
7
8
# File 'lib/avro/resolution_fingerprint.rb', line 5

def sha256_resolution_fingerprint
  resolution_form = ResolutionCanonicalForm.to_resolution_form(self)
  Digest::SHA256.hexdigest(resolution_form).to_i(16)
end