@univerjs-pro/engine-pivot v0.5.4
Class: SummaryManager
Defined in: summary/summary-manager.ts:10
Constructors
new SummaryManager()
new SummaryManager(queryData, tupleGroup): SummaryManager
Defined in: summary/summary-manager.ts:57
Parameters
Parameter | Type |
---|---|
queryData | IPivotTableQueryData |
tupleGroup | TupleGroup |
Returns
Properties
Property | Type | Default value | Description | Defined in |
---|---|---|---|---|
_colLevelPool | IPivotSummaryLevelPool | {} | - | summary/summary-manager.ts:45 |
_rowLevelPool | IPivotSummaryLevelPool | {} | - | summary/summary-manager.ts:44 |
colDeep | number | undefined | - | summary/summary-manager.ts:17 |
colDimOrder | number [] | undefined | - | summary/summary-manager.ts:13 |
collapseInfo | Record <string , boolean | Record <string , boolean >> | undefined | - | summary/summary-manager.ts:53 |
colNodeTree | NodeTree | undefined | - | summary/summary-manager.ts:47 |
colTableIdList | string [] | undefined | - | summary/summary-manager.ts:15 |
combinePathMap | Record <string , Record <string , number >> | {} | fist Record key is combinePathMap | summary/summary-manager.ts:52 |
counter | number | undefined | - | summary/summary-manager.ts:11 |
dimensionIdList | string [] | [] | - | summary/summary-manager.ts:33 |
dimensionMap | Record <string , IDimensionMapItem > | {} | - | summary/summary-manager.ts:48 |
dimensionSortInfo | Record <string , { sortMap : Record <string , number >; type : PivotDataFieldSortOperatorEnum ; }> | {} | - | summary/summary-manager.ts:55 |
dimensionTableIdList | string [] | [] | - | summary/summary-manager.ts:37 |
leafCount | number | undefined | - | summary/summary-manager.ts:19 |
measureCount | number | undefined | - | summary/summary-manager.ts:18 |
measureIdList | string [] | [] | - | summary/summary-manager.ts:42 |
measuresMap | Record <string , IMeasuresMapItem > | {} | - | summary/summary-manager.ts:20 |
rowDeep | number | undefined | - | summary/summary-manager.ts:16 |
rowDimOrder | number [] | undefined | - | summary/summary-manager.ts:12 |
rowNodeTree | NodeTree | undefined | - | summary/summary-manager.ts:46 |
rowTableIdList | string [] | undefined | - | summary/summary-manager.ts:14 |
tupleMap | Record <string , number > | {} | - | summary/summary-manager.ts:29 |
tuples | ITupleItem [] | [] | - | summary/summary-manager.ts:25 |
Methods
_buildNodeTreeImp()
_buildNodeTreeImp(
dimOrder,
tableIdList,
levelPool,
nodePathStr): NodeTree
Defined in: summary/summary-manager.ts:184
Parameters
Parameter | Type |
---|---|
dimOrder | number [] |
tableIdList | string [] |
levelPool | IPivotSummaryLevelPool |
nodePathStr | string |
Returns
NodeTree
_calculateSubtotalImp()
_calculateSubtotalImp(levelPool): void
Defined in: summary/summary-manager.ts:359
Parameters
Parameter | Type |
---|---|
levelPool | IPivotSummaryLevelPool |
Returns
void
buildNodeTree()
buildNodeTree(): void
Defined in: summary/summary-manager.ts:160
Returns
void
calculateListSubtotal()
calculateListSubtotal(tupleItem, indexes): void
Defined in: summary/summary-manager.ts:270
Parameters
Parameter | Type |
---|---|
tupleItem | ITupleItem |
indexes | number [] |
Returns
void
calculateSubtotal()
calculateSubtotal(): void
Defined in: summary/summary-manager.ts:291
Returns
void
combinePathMapList()
combinePathMapList(colPathMapList, basePath): Record<string, number>
Defined in: summary/summary-manager.ts:239
Parameters
Parameter | Type |
---|---|
colPathMapList | Record <string , number >[] |
basePath | string |
Returns
Record
<string
, number
>
createSummaryLabelSortedMap()
createSummaryLabelSortedMap(queryData): void
Defined in: summary/summary-manager.ts:118
Parameters
Parameter | Type |
---|---|
queryData | IPivotTableQueryData |
Returns
void
createTuple()
createTuple(
paths,
pathsStr?,
nodeIndex?): void
Defined in: summary/summary-manager.ts:335
- create tuple if not exist
Parameters
Parameter | Type | Description |
---|---|---|
paths | string [] | the path of tuple |
pathsStr ? | string | the joined path string of tuple |
nodeIndex ? | number | - |
Returns
void
createTupleWithoutCheck()
createTupleWithoutCheck(
paths,
nodeIndex,
tupleKey): void
Defined in: summary/summary-manager.ts:169
Parameters
Parameter | Type |
---|---|
paths | string [] |
nodeIndex | number |
tupleKey | string |
Returns
void
doSummary()
doSummary(): void
Defined in: summary/summary-manager.ts:151
Returns
void
ensureTupleItem()
ensureTupleItem(
index,
paths,
tableIdList): void
Defined in: summary/summary-manager.ts:316
Parameters
Parameter | Type |
---|---|
index | number |
paths | string [] |
tableIdList | string [] |
Returns
void
ensureTupleItemByString()
ensureTupleItemByString(index, pathString): void
Defined in: summary/summary-manager.ts:323
Parameters
Parameter | Type |
---|---|
index | number |
pathString | string |
Returns
void
getCellValue()
getCellValue(
index,
id,
subtotal):
| undefined
| number
| {
errorType: PivotErrorTypeEnum;
}
Defined in: summary/summary-manager.ts:129
Parameters
Parameter | Type |
---|---|
index | number |
id | string |
subtotal | PivotSubtotalTypeEnum |
Returns
| undefined
| number
| {
errorType
: PivotErrorTypeEnum
;
}
getPathKeyWithFiledId()
getPathKeyWithFiledId(paths, tableIdList): string
Defined in: summary/summary-manager.ts:307
Parameters
Parameter | Type |
---|---|
paths | string [] |
tableIdList | string [] |
Returns
string
getSortedMap()
getSortedMap(tableFieldId, dataField): Record<string, number>
Defined in: summary/summary-manager.ts:136
Parameters
Parameter | Type |
---|---|
tableFieldId | string |
dataField | DataField |
Returns
Record
<string
, number
>