@univerjs-pro/engine-pivot v0.5.0-beta.1 • Docs


Class: SummaryManager

Constructors

new SummaryManager()

new SummaryManager(queryData, tupleGroup): SummaryManager

Parameters

ParameterType
queryDataIPivotTableQueryData
tupleGroupTupleGroup

Returns

SummaryManager

Defined in

summary/summary-manager.ts:57

Properties

PropertyTypeDefault valueDescriptionDefined in
_colLevelPoolIPivotSummaryLevelPool{}-summary/summary-manager.ts:45
_rowLevelPoolIPivotSummaryLevelPool{}-summary/summary-manager.ts:44
colDeepnumberundefined-summary/summary-manager.ts:17
colDimOrdernumber[]undefined-summary/summary-manager.ts:13
collapseInfoRecord<string, boolean | Record<string, boolean>>undefined-summary/summary-manager.ts:53
colNodeTreeNodeTreeundefined-summary/summary-manager.ts:47
colTableIdListstring[]undefined-summary/summary-manager.ts:15
combinePathMapRecord<string, Record<string, number>>{}fist Record key is combinePathMapsummary/summary-manager.ts:52
counternumberundefined-summary/summary-manager.ts:11
dimensionIdListstring[][]-summary/summary-manager.ts:33
dimensionMapRecord<string, IDimensionMapItem>{}-summary/summary-manager.ts:48
dimensionSortInfoRecord<string, { sortMap: Record<string, number>; type: PivotDataFieldSortOperatorEnum; }>{}-summary/summary-manager.ts:55
dimensionTableIdListstring[][]-summary/summary-manager.ts:37
leafCountnumberundefined-summary/summary-manager.ts:19
measureCountnumberundefined-summary/summary-manager.ts:18
measureIdListstring[][]-summary/summary-manager.ts:42
measuresMapRecord<string, IMeasuresMapItem>{}-summary/summary-manager.ts:20
rowDeepnumberundefined-summary/summary-manager.ts:16
rowDimOrdernumber[]undefined-summary/summary-manager.ts:12
rowNodeTreeNodeTreeundefined-summary/summary-manager.ts:46
rowTableIdListstring[]undefined-summary/summary-manager.ts:14
tupleMapRecord<string, number>{}-summary/summary-manager.ts:29
tuplesITupleItem[][]-summary/summary-manager.ts:25

Methods

_buildNodeTreeImp()

_buildNodeTreeImp(
   dimOrder, 
   tableIdList, 
   levelPool, 
   nodePathStr): NodeTree

Parameters

ParameterType
dimOrdernumber[]
tableIdListstring[]
levelPoolIPivotSummaryLevelPool
nodePathStrstring

Returns

NodeTree

Defined in

summary/summary-manager.ts:184


_calculateSubtotalImp()

_calculateSubtotalImp(levelPool): void

Parameters

ParameterType
levelPoolIPivotSummaryLevelPool

Returns

void

Defined in

summary/summary-manager.ts:359


buildNodeTree()

buildNodeTree(): void

Returns

void

Defined in

summary/summary-manager.ts:160


calculateListSubtotal()

calculateListSubtotal(tupleItem, indexes): void

Parameters

ParameterType
tupleItemITupleItem
indexesnumber[]

Returns

void

Defined in

summary/summary-manager.ts:270


calculateSubtotal()

calculateSubtotal(): void

Returns

void

Defined in

summary/summary-manager.ts:291


combinePathMapList()

combinePathMapList(colPathMapList, basePath): Record<string, number>

Parameters

ParameterType
colPathMapListRecord<string, number>[]
basePathstring

Returns

Record<string, number>

Defined in

summary/summary-manager.ts:239


createSummaryLabelSortedMap()

createSummaryLabelSortedMap(queryData): void

Parameters

ParameterType
queryDataIPivotTableQueryData

Returns

void

Defined in

summary/summary-manager.ts:118


createTuple()

createTuple(
   paths, 
   pathsStr?, 
   nodeIndex?): void
  • create tuple if not exist

Parameters

ParameterTypeDescription
pathsstring[]the path of tuple
pathsStr?stringthe joined path string of tuple
nodeIndex?number-

Returns

void

Defined in

summary/summary-manager.ts:335


createTupleWithoutCheck()

createTupleWithoutCheck(
   paths, 
   nodeIndex, 
   tupleKey): void

Parameters

ParameterType
pathsstring[]
nodeIndexnumber
tupleKeystring

Returns

void

Defined in

summary/summary-manager.ts:169


doSummary()

doSummary(): void

Returns

void

Defined in

summary/summary-manager.ts:151


ensureTupleItem()

ensureTupleItem(
   index, 
   paths, 
   tableIdList): void

Parameters

ParameterType
indexnumber
pathsstring[]
tableIdListstring[]

Returns

void

Defined in

summary/summary-manager.ts:316


ensureTupleItemByString()

ensureTupleItemByString(index, pathString): void

Parameters

ParameterType
indexnumber
pathStringstring

Returns

void

Defined in

summary/summary-manager.ts:323


getCellValue()

getCellValue(
   index, 
   id, 
   subtotal): undefined | number | {
  errorType: PivotErrorTypeEnum;
}

Parameters

ParameterType
indexnumber
idstring
subtotalPivotSubtotalTypeEnum

Returns

undefined | number | { errorType: PivotErrorTypeEnum; }

Defined in

summary/summary-manager.ts:129


getPathKeyWithFiledId()

getPathKeyWithFiledId(paths, tableIdList): string

Parameters

ParameterType
pathsstring[]
tableIdListstring[]

Returns

string

Defined in

summary/summary-manager.ts:307


getSortedMap()

getSortedMap(tableFieldId, dataField): Record<string, number>

Parameters

ParameterType
tableFieldIdstring
dataFieldDataField

Returns

Record<string, number>

Defined in

summary/summary-manager.ts:136