Class: CosmographLinkAggregationManager
Constructors
Constructor
new CosmographLinkAggregationManager(
_):CosmographLinkAggregationManager
Parameters
| Parameter | Type |
|---|---|
_ | ICosmographInternalApi |
Returns
CosmographLinkAggregationManager
Accessors
countCache
Get Signature
get countCache():
null|Map<bigint,number>
Returns
null | Map<bigint, number>
colorSumCache
Get Signature
get colorSumCache():
null|Map<bigint,number>
Returns
null | Map<bigint, number>
widthSumCache
Get Signature
get widthSumCache():
null|Map<bigint,number>
Returns
null | Map<bigint, number>
Methods
buildCountCache()
buildCountCache(
linksTable):void
Parameters
| Parameter | Type |
|---|---|
linksTable | CosmographData |
Returns
void
buildColorSumCache()
buildColorSumCache(
linksTable,column):void
Parameters
| Parameter | Type |
|---|---|
linksTable | CosmographData |
column | null | Vector<any> |
Returns
void
buildWidthSumCache()
buildWidthSumCache(
linksTable,column):void
Parameters
| Parameter | Type |
|---|---|
linksTable | CosmographData |
column | null | Vector<any> |
Returns
void
aggregateFromCache()
aggregateFromCache(
linksTable,strategy,useColorCache):undefined|number[]
Parameters
| Parameter | Type | Default value |
|---|---|---|
linksTable | CosmographData | undefined |
strategy | "count" | "sum" | "average" | undefined |
useColorCache | boolean | true |
Returns
undefined | number[]
getKeysByValueCondition()
getKeysByValueCondition(
cache,condition):bigint[]
Parameters
| Parameter | Type |
|---|---|
cache | null | Map<bigint, number> |
condition | (value) => boolean |
Returns
bigint[]
getIndicesSetFromKeys()
getIndicesSetFromKeys(
keys):number[]
Parameters
| Parameter | Type |
|---|---|
keys | bigint[] |
Returns
number[]
getIndicesByValueCondition()
getIndicesByValueCondition(
cache,condition):number[]
Parameters
| Parameter | Type |
|---|---|
cache | null | Map<bigint, number> |
condition | (value) => boolean |
Returns
number[]
getIndicesByAverageCondition()
getIndicesByAverageCondition(
countCache,sumCache,condition):number[]
Parameters
| Parameter | Type |
|---|---|
countCache | null | Map<bigint, number> |
sumCache | null | Map<bigint, number> |
condition | (average) => boolean |
Returns
number[]
clear()
clear():
void
Returns
void
clearColorSumCache()
clearColorSumCache():
void
Returns
void
clearWidthSumCache()
clearWidthSumCache():
void
Returns
void