* * Get a data store which can be shared across series. * Only available for series. * * @param seriesDimRequest Dimensions that are generated in series. * Should have been sorted by `storeDimIndex` asc.
(seriesDimRequest: SeriesDataSchema)
| 374 | * Should have been sorted by `storeDimIndex` asc. |
| 375 | */ |
| 376 | getSharedDataStore(seriesDimRequest: SeriesDataSchema): DataStore { |
| 377 | if (__DEV__) { |
| 378 | assert(isSeries(this._sourceHost), 'Can only call getDataStore on series source manager.'); |
| 379 | } |
| 380 | const schema = seriesDimRequest.makeStoreSchema(); |
| 381 | return this._innerGetDataStore( |
| 382 | schema.dimensions, seriesDimRequest.source, schema.hash |
| 383 | ); |
| 384 | } |
| 385 | |
| 386 | private _innerGetDataStore( |
| 387 | storeDims: DataStoreDimensionDefine[], |
no test coverage detected