MCPcopy Index your code
hub / github.com/uber/aresdb / cleanUpForeignTable

Method cleanUpForeignTable

query/aql_processor.go:291–301  ·  view source on GitHub ↗

clean up foreign table

(table *foreignTable)

Source from the content-addressed store, hash-verified

289
290// clean up foreign table
291func (qc *AQLQueryContext) cleanUpForeignTable(table *foreignTable) {
292 if table != nil {
293 deviceFreeAndSetNil(&table.devicePrimaryKeyPtr)
294 for _, batch := range table.batches {
295 for _, column := range batch {
296 deviceFreeAndSetNil(&column.basePtr)
297 }
298 }
299 table.batches = nil
300 }
301}
302
303// getGeoShapeLatLongSlice format GeoShapeGo into slices of float32 for query purpose
304// Lats and Longs are stored in the format as [a1,a2,...an,a1,MaxFloat32,b1,bz,...bn]

Callers 1

cleanUpDeviceStatusMethod · 0.95

Calls 1

deviceFreeAndSetNilFunction · 0.85

Tested by

no test coverage detected