Beispiel #1
0
 private MsgD WriteImmediateQueryResult(AbstractQueryResult queryResult, ObjectExchangeConfiguration
     config)
 {
     var idIterator = queryResult.IterateIDs();
     var message = BuildQueryResultMessage(0, idIterator, queryResult.Size(), config);
     return message;
 }
Beispiel #2
0
		public override void LoadFromQuery(QQuery query)
		{
			if (query.RequiresSort())
			{
				_delegate = new IdListQueryResult(Transaction());
			}
			_delegate.LoadFromQuery(query);
		}
Beispiel #3
0
 public override void LoadFromQuery(QQuery query)
 {
     if (query.RequiresSort())
     {
         _delegate = new IdListQueryResult(Transaction());
     }
     _delegate.LoadFromQuery(query);
 }
Beispiel #4
0
 protected MsgD WriteQueryResult(AbstractQueryResult queryResult, QueryEvaluationMode
     evaluationMode, ObjectExchangeConfiguration config)
 {
     if (evaluationMode == QueryEvaluationMode.Immediate)
     {
         return WriteImmediateQueryResult(queryResult, config);
     }
     return WriteLazyQueryResult(queryResult, config);
 }
Beispiel #5
0
		/// <summary>
		/// The default
		/// <see cref="ClientQueryResultIterator">ClientQueryResultIterator</see>
		/// for this platform.
		/// </summary>
		/// <returns></returns>
		public static IEnumerator CreateClientQueryResultIterator(AbstractQueryResult result
			)
		{
			IQueryResultIteratorFactory factory = result.Config().QueryResultIteratorFactory(
				);
			if (null != factory)
			{
				return factory.NewInstance(result);
			}
			return new ClientQueryResultIterator(result);
		}
Beispiel #6
0
 private MsgD WriteLazyQueryResult(AbstractQueryResult queryResult, ObjectExchangeConfiguration
     config)
 {
     var queryResultId = GenerateID();
     var maxCount = Config().PrefetchObjectCount();
     var idIterator = queryResult.IterateIDs();
     var message = BuildQueryResultMessage(queryResultId, idIterator, maxCount, config
         );
     var serverThread = ServerMessageDispatcher();
     serverThread.MapQueryResultToID(new LazyClientObjectSetStub(queryResult, idIterator
         ), queryResultId);
     return message;
 }
Beispiel #7
0
 public _MappingIterator_56(AbstractQueryResult _enclosing, IEnumerator baseArg1) :
     base(baseArg1)
 {
     this._enclosing = _enclosing;
 }
Beispiel #8
0
 public override int GetId(int index)
 {
     _delegate = _delegate.SupportElementAccess();
     return _delegate.GetId(index);
 }
Beispiel #9
0
 public override int IndexOf(int id)
 {
     _delegate = _delegate.SupportElementAccess();
     return _delegate.IndexOf(id);
 }
Beispiel #10
0
 public override void SortIds(IIntComparator cmp)
 {
     _delegate = _delegate.SupportSort();
     _delegate.SortIds(cmp);
 }
Beispiel #11
0
 public HybridQueryResult(Transaction transaction, QueryEvaluationMode mode) : base
     (transaction)
 {
     _delegate = ForMode(transaction, mode);
 }
Beispiel #12
0
 public override int Size()
 {
     _delegate = _delegate.SupportSize();
     return _delegate.Size();
 }
Beispiel #13
0
 public override void Sort(IQueryComparator cmp)
 {
     _delegate = _delegate.SupportSort();
     _delegate.Sort(cmp);
 }
		public LazyClientObjectSetStub(AbstractQueryResult queryResult, IIntIterator4 idIterator
			)
		{
			_queryResult = queryResult;
			_idIterator = idIterator;
		}
Beispiel #15
0
 public override void Sort(IQueryComparator cmp)
 {
     _delegate = _delegate.SupportSort();
     _delegate.Sort(cmp);
 }
Beispiel #16
0
			public _MappingIterator_56(AbstractQueryResult _enclosing, IEnumerator baseArg1) : 
				base(baseArg1)
			{
				this._enclosing = _enclosing;
			}
Beispiel #17
0
 public override void SortIds(IIntComparator cmp)
 {
     _delegate = _delegate.SupportSort();
     _delegate.SortIds(cmp);
 }
Beispiel #18
0
 public HybridQueryResult(Transaction transaction, QueryEvaluationMode mode) : base
         (transaction)
 {
     _delegate = ForMode(transaction, mode);
 }
Beispiel #19
0
 public override int IndexOf(int id)
 {
     _delegate = _delegate.SupportElementAccess();
     return(_delegate.IndexOf(id));
 }
Beispiel #20
0
 public override int GetId(int index)
 {
     _delegate = _delegate.SupportElementAccess();
     return(_delegate.GetId(index));
 }
 public _IEnumerator_74(AbstractQueryResult _enclosing, IEnumerator source)
 {
     this._enclosing = _enclosing;
     this.source     = source;
 }
Beispiel #22
0
 public override int Size()
 {
     _delegate = _delegate.SupportSize();
     return(_delegate.Size());
 }
 internal ClientQueryResultIterator(AbstractQueryResult client)
 {
     _client = client;
     _ids = client.IterateIDs();
 }
Beispiel #24
0
			public _IEnumerator_74(AbstractQueryResult _enclosing, IEnumerator source)
			{
				this._enclosing = _enclosing;
				this.source = source;
			}