* Only support the dimension which inverted index created. * Do not support other cases until required. * @param dim concrete dim * @param value ordinal index * @return rawIndex
(dim: SeriesDimensionName, value: OrdinalNumber)
| 860 | * @return rawIndex |
| 861 | */ |
| 862 | rawIndexOf(dim: SeriesDimensionName, value: OrdinalNumber): number { |
| 863 | const invertedIndices = dim && this._invertedIndicesMap[dim]; |
| 864 | if (__DEV__) { |
| 865 | if (!invertedIndices) { |
| 866 | throw new Error('Do not supported yet'); |
| 867 | } |
| 868 | } |
| 869 | const rawIndex = invertedIndices && invertedIndices[value]; |
| 870 | if (rawIndex == null || isNaN(rawIndex)) { |
| 871 | return INDEX_NOT_FOUND; |
| 872 | } |
| 873 | return rawIndex; |
| 874 | } |
| 875 | |
| 876 | /** |
| 877 | * Data iteration |
no outgoing calls
no test coverage detected