This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Home > Class Reference > %SYS namespace > Inventory.Hashable

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 (Including Private)

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

Methods (Including Private)

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

Subclasses

Feedback