protected internal override QueryExecutionEngine CreateEngine(Dependencies deps, GraphDatabaseAPI graphAPI) { GraphDatabaseCypherService queryService = new GraphDatabaseCypherService(graphAPI); deps.SatisfyDependency(queryService); DependencyResolver resolver = graphAPI.DependencyResolver; LogService logService = resolver.ResolveDependency(typeof(LogService)); Monitors monitors = resolver.ResolveDependency(typeof(Monitors)); Config config = resolver.ResolveDependency(typeof(Config)); CypherConfiguration cypherConfig = CypherConfiguration.fromConfig(config); CypherPlannerConfiguration plannerConfig = cypherConfig.toCypherPlannerConfiguration(config); CypherRuntimeConfiguration runtimeConfig = cypherConfig.toCypherRuntimeConfiguration(); LogProvider logProvider = logService.InternalLogProvider; CommunityCompilerFactory communityCompilerFactory = new CommunityCompilerFactory(queryService, monitors, logProvider, plannerConfig, runtimeConfig); EnterpriseCompilerFactory compilerFactory = new EnterpriseCompilerFactory(communityCompilerFactory, queryService, monitors, logProvider, plannerConfig, runtimeConfig); deps.SatisfyDependency(compilerFactory); return(CreateEngine(queryService, config, logProvider, compilerFactory)); }
private ExecutionEngine StandardEngine(GraphDatabaseCypherService queryService, LogProvider logProvider, EnterpriseCompilerFactory compilerFactory) { return(new ExecutionEngine(queryService, logProvider, compilerFactory)); }
private SnapshotExecutionEngine SnapshotEngine(GraphDatabaseCypherService queryService, Config config, LogProvider logProvider, EnterpriseCompilerFactory compilerFactory) { return(new SnapshotExecutionEngine(queryService, config, logProvider, compilerFactory)); }
private QueryExecutionEngine CreateEngine(GraphDatabaseCypherService queryService, Config config, LogProvider logProvider, EnterpriseCompilerFactory compilerFactory) { return(config.Get(GraphDatabaseSettings.snapshot_query) ? SnapshotEngine(queryService, config, logProvider, compilerFactory) : StandardEngine(queryService, logProvider, compilerFactory)); }