Inventory.Hashable

abstract class Inventory.Hashable

Hashable is an abstract class providing the means to attach a SHA1 hash value to its subclass instances.

Property Inventory (Including Private)

Method Inventory (Including Private)

Properties

property SHA1Hash as %String (COLLATION = "EXACT");
The SHA1Hash of the object, base 64 encoded.
Property methods: SHA1HashDisplayToLogical(), SHA1HashGet(), SHA1HashIsValid(), SHA1HashLogicalToDisplay(), SHA1HashLogicalToOdbc(), SHA1HashNormalize(), SHA1HashSet()

Methods

method GenerateSHA1Hash(string As %String) [ Language = objectscript ]
Generate a base 64 encoded SHA1 hash of string and store it as the SHA1Hash property of this object.
method GenerateSHA1HashFromStream(stream As %Stream.Object) [ Language = objectscript ]
Generate a base 64 encoded SHA1 hash of the contents of stream and store it as the SHA1Hash property of this object.

Indices

index (SHA1HashIndex on SHA1Hash:Exact);
An index on the SHA1Hash value of this object
Feedback