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

Method archiveBatchCustomFilterExecutor

query/aql_processor.go:619–630  ·  view source on GitHub ↗

archiveBatchCustomFilterExecutor returns a functor to apply custom filter to first or last archive batch.

(isFirstOrLast bool)

Source from the content-addressed store, hash-verified

617
618// archiveBatchCustomFilterExecutor returns a functor to apply custom filter to first or last archive batch.
619func (qc *AQLQueryContext) archiveBatchCustomFilterExecutor(isFirstOrLast bool) customFilterExecutor {
620 return func(stream unsafe.Pointer) {
621 if isFirstOrLast {
622 for _, filter := range qc.OOPK.TimeFilters {
623 if filter != nil {
624 qc.OOPK.currentBatch.processExpression(filter, nil,
625 qc.TableScanners, qc.OOPK.foreignTables, stream, qc.Device, qc.OOPK.currentBatch.filterAction)
626 }
627 }
628 }
629 }
630}
631
632// helper function for copy dimension vector. Returns the total size of dimension vector.
633func asyncCopyDimensionVector(toDimVector, fromDimVector unsafe.Pointer, length, offset int, numDimsPerDimWidth queryCom.DimCountsPerDimWidth,

Callers 1

processShardMethod · 0.95

Calls 1

processExpressionMethod · 0.80

Tested by

no test coverage detected