Skip to main content

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

Method Inventory

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)
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)
Generate a base 64 encoded SHA1 hash of the contents of stream and store it as the SHA1Hash property of this object.

Indexes

index (SHA1HashIndex on SHA1Hash:Exact);
An index on the SHA1Hash value of this object
FeedbackOpens in a new tab