persistent class %DeepSee.PMML.Dataset.Cube
extends %DeepSee.PMML.Dataset.Base
property CubeName
as %String;
property Filter
as %String(MAXLEN=2000);
classmethod %Create(pName As %String, pCubeName As %String, ByRef pFields, pFilter As %String = "", Output pSC As %Status)
as %DeepSee.PMML.Dataset.Cube
pFields is an array of the cube levels and measures to be included in the dataset
pFields(n) = $lb(name, spec, tDataType, tOpType)
Field spec is MDX level spec [].[].[]
method Get1DDistribution(pField As %String, Output pDistribution, ByRef pFilters)
as %Status
accepts
pFilters(n) = $lb(field, operator, key)
returns:
pDistribution("total") = tTotalCount
pDistribution(n) = $lb(value, count)
method GetRecordIds(Output pRecordIds, ByRef pFilters)
as %Status
returns pIds(n) = rowid
method GetValueCount(pField As %String, pIncludeNull As %Boolean = 1, ByRef pFilters, Output pSC As %Status)
as %Integer
Returns the number of distinct values for pField (categorical)
method GetXDDistribution(pFields As %List, Output pDistribution, ByRef pFilters)
as %Status
accepts
pFilters(n) = $lb(field, operator, key)
returns:
pDistribution = $lb(dim1Count, dim2Count, ...)
pDistribution("value", dim, i) = value
pDistribution(i, j, ...) = tCount
pDistribution("total", dim, i) = tDimTotal