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

Function makeScratchSpaceOutput

query/time_series_aggregate.go:285–296  ·  view source on GitHub ↗
(values unsafe.Pointer, nulls unsafe.Pointer, dataType C.enum_DataType)

Source from the content-addressed store, hash-verified

283}
284
285func makeScratchSpaceOutput(values unsafe.Pointer, nulls unsafe.Pointer, dataType C.enum_DataType) C.OutputVector {
286 var scratchSpaceVector C.ScratchSpaceVector
287 scratchSpaceVector.Values = (*C.uint8_t)(values)
288 scratchSpaceVector.NullsOffset = (C.uint32_t)(utils.MemDist(nulls, values))
289 scratchSpaceVector.DataType = dataType
290
291 var vector C.OutputVector
292 *(*C.ScratchSpaceVector)(unsafe.Pointer(&vector.Vector)) = scratchSpaceVector
293 vector.Type = C.ScratchSpaceOutput
294
295 return vector
296}
297
298func makeDimensionVector(valueVector, hashVector, indexVector unsafe.Pointer, numDims common.DimCountsPerDimWidth, vectorCapacity int) C.DimensionVector {
299 var dimensionVector C.DimensionVector

Callers 2

processExpressionMethod · 0.85

Calls 1

MemDistFunction · 0.92

Tested by

no test coverage detected