예제 #1
0
파일: Query.cs 프로젝트: trylock/viewer
 public Query(
     IRuntime runtime,
     IPriorityComparerFactory priorityComparerFactory,
     IExecutableQuery source)
     : this(runtime, priorityComparerFactory, source, null)
 {
 }
예제 #2
0
파일: Query.cs 프로젝트: trylock/viewer
 public QueryFactory(
     IRuntime runtime,
     IPriorityComparerFactory priorityComparerFactory,
     IEntityManager entities,
     IFileSystem fileSystem)
 {
     _runtime = runtime;
     _priorityComparerFactory = priorityComparerFactory;
     _entities   = entities;
     _fileSystem = fileSystem;
 }
예제 #3
0
파일: Query.cs 프로젝트: trylock/viewer
 public Query(
     IRuntime runtime,
     IPriorityComparerFactory priorityComparerFactory,
     IExecutableQuery source,
     string text)
 {
     _runtime = runtime;
     _priorityComparerFactory = priorityComparerFactory;
     _source = source;
     _text   = text;
 }
예제 #4
0
 /// <summary>
 /// Copy constructor. This does not copy computed values such as compiled predicate
 /// so that the predicate can be changed and recompiled later.
 /// </summary>
 /// <param name="other">Other simple query</param>
 private SimpleQuery(SimpleQuery other)
 {
     _runtime                 = other._runtime;
     _fileSystem              = other._fileSystem;
     _entityManager           = other._entityManager;
     _priorityComparerFactory = other._priorityComparerFactory;
     _fileFinder              = other._fileFinder;
     Predicate                = other.Predicate;
     Comparer                 = other.Comparer;
     ComparerText             = other.ComparerText;
     GroupFunction            = other.GroupFunction;
 }
예제 #5
0
 public SimpleQuery(
     IEntityManager entityManager,
     IFileSystem fileSystem,
     IRuntime runtime,
     IPriorityComparerFactory priorityComparerFactory,
     string pattern)
 {
     _runtime                 = runtime;
     _fileSystem              = fileSystem;
     _entityManager           = entityManager;
     _priorityComparerFactory = priorityComparerFactory;
     _fileFinder              = _fileSystem.CreateFileFinder(pattern);
 }