Skip to main content

%iKnow.Objects.CrcUnique

Class %iKnow.Objects.CrcUnique 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 CRCs.

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.Queries.CrcAPI and other query classes to consult CRC data as the internal global structures are designed to optimize performance for these queries rather than general-purpose access.

NOTE: This object assumes all underlying data structures are present. Use domain-specific copies of these objects for domains where not all indices are built. See also the GenerateAllObjectsForDomain() method in %iKnow.Objects.Utils.

Parameters

READONLY

Parameter READONLY = 1;

Properties

DomainId

Property DomainId As %Integer;

CrcUniId

Property CrcUniId As %Integer;

HeadId

Property HeadId As %Integer;

MasterId

Property MasterId As %Integer [ Calculated, Deprecated, Internal, SqlComputeCode = { set {MasterId} = {HeadId} }, SqlComputed ];

RelationId

Property RelationId As %Integer;

TailId

Property TailId As %Integer;

SlaveId

Property SlaveId As %Integer [ Calculated, Deprecated, Internal, SqlComputeCode = { set {SlaveId} = {TailId}}, SqlComputed ];

CorpusFrequency

Property CorpusFrequency As %Integer [ Calculated, SqlComputeCode = { set {CorpusFrequency} = $lg(^IRIS.IK.CrcUniDetails({DomainId},{CrcUniId}),1) }, SqlComputed ];

CorpusSpread

Property CorpusSpread As %Integer [ Calculated, SqlComputeCode = { set {CorpusSpread} = $lg(^IRIS.IK.CrcUniDetails({DomainId},{CrcUniId}),2) }, SqlComputed ];

CorpusDominance

Property CorpusDominance As %Numeric [ Calculated, SqlComputeCode = {set {CorpusDominance} = ##class(%iKnow.Semantics.DominanceAPI).GetDomainValue({DomainId},{CrcUniId},$$$SDCRC) }, SqlComputed ];
Property Head As %iKnow.Objects.EntityUnique [ Calculated, SqlComputeCode = { set {Head} = {DomainId} _"||"_ {HeadId} }, SqlComputed ];

Master

Property Master As %iKnow.Objects.EntityUnique [ Calculated, Deprecated, Internal, SqlComputeCode = { set {Master} = {DomainId} _"||"_ {MasterId} }, SqlComputed ];

Relation

Property Relation As %iKnow.Objects.EntityUnique [ Calculated, SqlComputeCode = { set {Relation} = {DomainId} _"||"_ {RelationId} }, SqlComputed ];

Tail

Property Tail As %iKnow.Objects.EntityUnique [ Calculated, SqlComputeCode = { set {Tail} = {DomainId} _"||"_ {TailId} }, SqlComputed ];

Slave

Property Slave As %iKnow.Objects.EntityUnique [ Calculated, Deprecated, Internal, SqlComputeCode = { set {Slave} = {DomainId} _"||"_ {SlaveId} }, SqlComputed ];

CcUniId

Property CcUniId As %Integer [ Calculated, SqlComputeCode = { set {CcUniId} = $g(^IRIS.IK.CcUni({DomainId},+{HeadId},+{TailId})) }, SqlComputed ];

CcUnique

Property CcUnique As %iKnow.Objects.CcUnique [ Calculated, SqlComputeCode = { set {CcUnique} = {DomainId} _"||"_ {CcUniId} }, SqlComputed ];