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

Function makeMeasureVectorOutput

query/time_series_aggregate.go:259–270  ·  view source on GitHub ↗
(measureVector unsafe.Pointer, outputDataType C.enum_DataType, aggFunc C.enum_AggregateFunction)

Source from the content-addressed store, hash-verified

257}
258
259func makeMeasureVectorOutput(measureVector unsafe.Pointer, outputDataType C.enum_DataType, aggFunc C.enum_AggregateFunction) C.OutputVector {
260 var measureOutputVector C.MeasureOutputVector
261
262 measureOutputVector.Values = (*C.uint32_t)(measureVector)
263 measureOutputVector.DataType = outputDataType
264 measureOutputVector.AggFunc = aggFunc
265
266 var vector C.OutputVector
267 *(*C.MeasureOutputVector)(unsafe.Pointer(&vector.Vector)) = measureOutputVector
268 vector.Type = C.MeasureOutput
269 return vector
270}
271
272func makeDimensionVectorOutput(dimensionVector unsafe.Pointer, valueOffset, nullOffset int, dataType C.enum_DataType) C.OutputVector {
273 var dimensionOutputVector C.DimensionOutputVector

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected