github.com/voedger/voedger@v0.0.0-20240520144910-273e84102129/pkg/processors/query/filter-and-impl.go (about) 1 /* 2 * Copyright (c) 2021-present unTill Pro, Ltd. 3 */ 4 5 package queryprocessor 6 7 type AndFilter struct { 8 filters []IFilter 9 } 10 11 func (f AndFilter) IsMatch(fk FieldsKinds, outputRow IOutputRow) (bool, error) { 12 for _, filter := range f.filters { 13 match, err := filter.IsMatch(fk, outputRow) 14 if err != nil { 15 return false, err 16 } 17 if !match { 18 return false, err 19 } 20 } 21 return true, nil 22 }