()
| 52 | } |
| 53 | |
| 54 | func (qc *AQLQueryContext) initResultFlushContext() { |
| 55 | qc.resultFlushContext.dimensionValueCache = make([]map[queryCom.TimeDimensionMeta]map[int64]string, len(qc.OOPK.Dimensions)) |
| 56 | qc.resultFlushContext.dimensionDataTypes = make([]memCom.DataType, len(qc.OOPK.Dimensions)) |
| 57 | qc.resultFlushContext.reverseDicts = make(map[int][]string) |
| 58 | |
| 59 | oopkContext := qc.OOPK |
| 60 | for dimIndex, dimExpr := range oopkContext.Dimensions { |
| 61 | qc.resultFlushContext.dimensionDataTypes[dimIndex], qc.resultFlushContext.reverseDicts[dimIndex] = queryCom.GetDimensionDataType(dimExpr), qc.getEnumReverseDict(dimIndex, dimExpr) |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | // flushResultBuffer reads dimension and measure data from current OOPK buffer to Results |
| 66 | func (qc *AQLQueryContext) flushResultBuffer() { |
no test coverage detected