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



7
8
9
10
# File 'lib/avro/resolution_fingerprint.rb', line 7

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