%iKnow.Objects.EntityMatch
Class %iKnow.Objects.EntityMatch Extends %Persistent [ Deprecated, StorageStrategy = iKnowStorage, System = 4 ]
Note: the use of this class is no longer recommended for accessing elements of a specific domain. For those scenarios, %iKnow.Tables.Utils offers a more flexible and customizable way of projecting iKnow domain data to SQL
This is a read-only object representation wrapping the internal iKnow data structures for unique entity-level matches. These are NOT the actual matching results, which are exposed through %iKnow.Objects.DictionaryMatch
This class can be used from ObjectScript or SQL to access a single or small number of entries, but the storage mappings are not meant to support elaborate or complex queries targeting this SQL table.
Please use the predefined queries in %iKnow.Matching.MatchingAPI and other query classes to consult matchig results as the internal global structures are designed to optimize performance for these queries rather than general-purpose access.
Parameters
READONLY
Parameter READONLY = 1;
Properties
DomainId
Property DomainId As %Integer;
EntUniId
Property EntUniId As %Integer;
DictElemId
Property DictElemId As %Integer;
MatchScore
Property MatchScore As %Numeric;
MatchedWordBits
Property MatchedWordBits As %String;
MatchedWords
Property MatchedWords As %String [ Calculated, SqlComputeCode = { new i set {MatchedWords} = "" for i=1:1:$bitcount({MatchedWordBits}) { set {MatchedWords} = {MatchedWords} _ $bit({MatchedWordBits},i) } }, SqlComputed ];
IsScattered
Property IsScattered As %Boolean;
FormatOutput
Property FormatOutput As %String;
Entity
Property Entity As %iKnow.Objects.EntityUnique [ Calculated, SqlComputeCode = {set {Entity} = {DomainId} _"||"_ {EntUniId}}, SqlComputed ];
DictionaryElement
Property DictionaryElement As %iKnow.Objects.DictionaryElement [ Calculated, SqlComputeCode = {set {DictionaryElement} = $s({DictElemId}<0:0, 1:{DomainId}) _"||"_ $zabs({DictElemId}) }, SqlComputed ];