コード例 #1
0
 protected BaseFilter(string token, IEnumerable <string> supportedOperatorTypes, bool resolver, QueryEngineImpl <TEngineType> queryEngine)
 {
     this.token                = token;
     supportedOperators        = supportedOperatorTypes ?? new string[] {};
     usesResolver              = resolver;
     overridesStringComparison = false;
     m_QueryEngine             = queryEngine;
 }
コード例 #2
0
 public Filter(string token, IEnumerable <string> supportedOperatorType, Func <TData, QueryFilterOperator, TFilter, bool> resolver, QueryEngineImpl <TData> queryEngine)
     : base(token, supportedOperatorType, true, queryEngine)
 {
     m_FilterResolver = resolver;
 }
コード例 #3
0
 public Filter(string token, IEnumerable <string> supportedOperatorType, Func <TData, string, TFilter, bool> resolver, QueryEngineImpl <TData> queryEngine)
     : base(token, supportedOperatorType, true, queryEngine)
 {
     m_FilterResolver = (data, op, filterValue) => resolver(data, op.token, filterValue);
 }
コード例 #4
0
 public Filter(string token, IEnumerable <string> supportedOperatorType, Func <TData, TFilter> getDataCallback, StringComparison stringComparison, QueryEngineImpl <TData> queryEngine)
     : base(token, supportedOperatorType, false, stringComparison, queryEngine)
 {
     m_GetDataCallback = getDataCallback;
 }
コード例 #5
0
 public Filter(string token, IEnumerable <string> supportedOperatorType, QueryEngineImpl <TData> queryEngine)
     : base(token, supportedOperatorType, false, queryEngine)
 {
     m_GetDataCallback = data => default;
 }
コード例 #6
0
 protected BaseFilter(Regex token, IEnumerable <string> supportedOperatorTypes, bool resolver, StringComparison stringComparison, QueryEngineImpl <TEngineType> queryEngine)
     : this(string.Empty, supportedOperatorTypes, resolver, stringComparison, queryEngine)
 {
     regexToken = token;
     ValidateRegexToken();
     BuildFilterMatchers();
 }
コード例 #7
0
 protected BaseFilter(string token, IEnumerable <string> supportedOperatorTypes, bool resolver, StringComparison stringComparison, QueryEngineImpl <TEngineType> queryEngine)
     : this(token, supportedOperatorTypes, resolver, queryEngine)
 {
     this.stringComparison     = stringComparison;
     overridesStringComparison = true;
 }