MCPcopy
hub / github.com/uber/aresdb / initResultFlushContext

Method initResultFlushContext

query/aql_postprocessor.go:54–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54func (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
66func (qc *AQLQueryContext) flushResultBuffer() {

Callers 2

ProcessQueryMethod · 0.95

Calls 1

getEnumReverseDictMethod · 0.95

Tested by

no test coverage detected