%DeepSee.FactTable
Class %DeepSee.FactTable Extends (%Persistent, %DeepSee.IndexBuilder) [ Abstract, NoExtent, System = 3 ]
Base class for all DeepSee fact tables.
Parameters
CUBENAME
Parameter CUBENAME As STRING;
Name of the cube that created this fact table.
SOURCECLASS
Parameter SOURCECLASS As STRING;
Name of the source table that provides data for this fact table.
MANAGEDEXTENT
Parameter MANAGEDEXTENT = 0;
Turn off extent management for fact tables.
Methods
%Count
ClassMethod %Count() As %Integer [ Abstract ]
Return the total number of items within the Fact table.
The actual implementation is generated when the cube is compiled.
%BuildAllFacts
ClassMethod %BuildAllFacts(pVerbose As %Boolean = 0) As %Status [ Abstract, Internal ]
Build all facts with data from the source table.
%UpdateFacts
ClassMethod %UpdateFacts(pStartId As %String, pEndId As %String, pBatchMode As %Boolean = 0, ByRef pChunks As %Integer, pVerbose As %Boolean = 0, pTaskGroup As %String = "", Output pUpdates As %Integer, pRefProp As %String = "", pRefID As %String = "", ByRef pDimTables, pFactList As %String = "") As %Status [ Abstract, Internal ]
Update a range of Facts with data from the source table row with ids from pStartId to pEndId.
The actual implementation is generated when the cube is compiled.
If pBatchMode is true, then we are building the entire cube from scratch (in parallel).
%ProcessFact
ClassMethod %ProcessFact(pID As %String, pBatchMode As %Boolean = 0, ByRef %var As %String, Output pFactId As %Integer, Output pErrorMsg As %String, ByRef pDimTables, pDimensionsOnly As %Boolean = 0, pFactList As %String = "") As %Status [ Abstract, Internal ]
Does the actual work of updating one fact (with source id pID) in the fact table with data in the array %var (which is subscripted by fact name).
The actual implementation is generated when the cube is compiled.
pDimensionsOnly is a special flag used by dimension-preloading.
%DeleteFact
ClassMethod %DeleteFact(pID As %String, Output pFactId As %Integer, Output pErrorMsg As %String) As %Status [ Abstract, Internal ]
Does the actual work of deleting one fact (with source id pID) from the fact table.
The actual implementation is generated when the cube is compiled.
%PrecomputeAggregates
ClassMethod %PrecomputeAggregates(pStartChunk As %Integer, pEndChunk As %Integer, pAggGLVN As %String, pVerbose As %Boolean = 0, pTaskGroup As %String = "") As %Status [ Abstract, Internal ]
Precalculate certain aggregate values when a cube is built (if the cube's precompute property is set) for the specified range of facts.
Do not call this method directly.
The actual implementation is generated when the cube is compiled. pAggGLVN is the name of the (private) global in which to put the answers.
%LogError
ClassMethod %LogError(pSC As %Status) As %Status [ Internal ]
This is called when there is an error in filing data into this cube. It writes the error message to a log file.
%KillLogFile
ClassMethod %KillLogFile() As %Status [ Internal ]
Kill the update log file.