Esempio n. 1
0
 public void Start()
 {
     if (_inMemory)
     {
         if (_query != null && _query.HasOrderBy())
         {
             _result = new InMemoryBTreeCollection <T>(_query.GetOrderByType());
         }
         else
         {
             _result = new SimpleList <T>();
         }
     }
     else
     {
         // result = new InMemoryBTreeCollection((int) nbObjects);
         if (_query != null && _query.HasOrderBy())
         {
             _result = new LazyBTreeCollection <T>(_storageEngine, _returnObjects);
         }
         else
         {
             _result = new LazySimpleListFromOid <T>(_storageEngine, _returnObjects);
         }
     }
 }
Esempio n. 2
0
 public QueryResultAction(IQuery query, bool inMemory, IStorageEngine storageEngine, bool returnObjects,
                          IInstanceBuilder instanceBuilder)
 {
     _query           = (IInternalQuery)query;
     _inMemory        = inMemory;
     _storageEngine   = storageEngine;
     _returnObjects   = returnObjects;
     _queryHasOrderBy = _query.HasOrderBy();
     _instanceBuilder = instanceBuilder;
 }