archiveBatchCustomFilterExecutor returns a functor to apply custom filter to first or last archive batch.
(isFirstOrLast bool)
| 617 | |
| 618 | // archiveBatchCustomFilterExecutor returns a functor to apply custom filter to first or last archive batch. |
| 619 | func (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. |
| 633 | func asyncCopyDimensionVector(toDimVector, fromDimVector unsafe.Pointer, length, offset int, numDimsPerDimWidth queryCom.DimCountsPerDimWidth, |
no test coverage detected