Пример #1
0
 public DefaultQueryHandlerFactory(QueryEngine <TData> engine, bool fastYielding = false)
 {
     m_Engine       = engine;
     m_FastYielding = fastYielding;
 }
Пример #2
0
 private void SetupQueryEngine()
 {
     m_QueryEngine         = new QueryEngine(false);
     m_QueryHandlerFactory = new GraphViewerQueryHandlerFactory();
 }
Пример #3
0
 public static IEnumerable <SearchProposition> GetPropositions(this QueryEngine queryEngine)
 {
     return(queryEngine.GetPropositions <object>());
 }
Пример #4
0
        public static IEnumerable <SearchProposition> GetPropositions <TData>(this QueryEngine <TData> queryEngine)
        {
            var filters = queryEngine.GetAllFilters();

            return(filters.SelectMany(f => f.GetPropositions()));
        }
Пример #5
0
 public static IQueryEnumerable <T> Create <T>(IQueryNode root, QueryEngine <T> engine, ICollection <QueryError> errors, bool fastYielding)
 {
     return(s_EnumerableFactories.TryGetValue(root.type, out var factory) ? factory.Create <T>(root, engine, errors, fastYielding) : null);
 }