示例#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);
 }