%iKnow.Objects.VirtualSource
Class %iKnow.Objects.VirtualSource Extends %Persistent [ Deprecated, StorageStrategy = iKnowStorage, System = 4 ]
This is a read-only object representation wrapping the internal iKnow data structures for Virtual Sources.
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.SourceAPI and other query classes to consult source data 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;
VirtualSourceId
Property VirtualSourceId As %Integer;
SourceId
Property SourceId As %Integer [ Calculated, SqlComputeCode = { set {SourceId} = -{VirtualSourceId} }, SqlComputed ];
ListerId
Property ListerId As %Integer [ Calculated, SqlComputeCode = { set {ListerId} = $lg($lg(^IRIS.IKV.SrcId({DomainId},{VirtualSourceId}),4),1) }, SqlComputed ];
GroupId
Property GroupId As %Integer [ Calculated, SqlComputeCode = { set {GroupId} = $lg($lg(^IRIS.IKV.SrcId({DomainId},{VirtualSourceId}),4),2) }, SqlComputed ];
LocalReference
Property LocalReference As %String(MAXLEN = 1000) [ Calculated, SqlComputeCode = { set {LocalReference} = $lg($lg(^IRIS.IKV.SrcId({DomainId},{VirtualSourceId}),4),3) }, SqlComputed ];
FirstSentenceId
Property FirstSentenceId As %Integer [ Calculated, SqlComputeCode = { set {FirstSentenceId} = $lg(^IRIS.IKV.SrcDetails({DomainId},{VirtualSourceId}),1)+1 }, SqlComputed ];
SentenceCount
Property SentenceCount As %Integer;
FirstEntityOccurrenceId
Property FirstEntityOccurrenceId As %Integer [ Calculated, SqlComputeCode = { set {FirstEntityOccurrenceId} = $lg(^IRIS.IKV.SrcDetails({DomainId},{VirtualSourceId}),3)+1 }, SqlComputed ];
EntityOccurrenceCount
Property EntityOccurrenceCount As %Integer;
FirstCrcOccurrenceId
Property FirstCrcOccurrenceId As %Integer [ Calculated, SqlComputeCode = { set {FirstCrcOccurrenceId} = $lg(^IRIS.IKV.SrcDetails({DomainId},{VirtualSourceId}),5)+1 }, SqlComputed ];
CrcOccurrenceCount
Property CrcOccurrenceCount As %Integer;
FirstPathId
Property FirstPathId As %Integer [ Calculated, SqlComputeCode = { set {FirstPathId} = $lg(^IRIS.IKV.SrcDetails({DomainId},{VirtualSourceId}),7)+1 }, SqlComputed ];
PathCount
Property PathCount As %Integer;
ExternalId
Property ExternalId As %String(MAXLEN = 2000) [ Calculated, SqlComputeCode = { set {ExternalId} = ##class(%iKnow.Queries.SourceAPI).GetExternalId({DomainId},-{VirtualSourceId}) }, SqlComputed ];
FullText
Property FullText As %String(MAXLEN = "") [ Calculated, SqlComputeCode = { new txt,to,i,o,more s txt = "", to=$lg(^IRIS.IKV.SrcDetails({DomainId},{VirtualSourceId}),2) for i = 1:1:to { k o set more = ##class(%iKnow.Queries.SentenceAPI).GetValue({DomainId},i,.o,{VirtualSourceId}) set o="" for { set o = $order(o(o),1,more) q:o="" set txt = txt _ more _ " " } } set {FullText} = $e(txt,1,*-1) }, SqlComputed ];