private MsgD WriteImmediateQueryResult(AbstractQueryResult queryResult, ObjectExchangeConfiguration config) { var idIterator = queryResult.IterateIDs(); var message = BuildQueryResultMessage(0, idIterator, queryResult.Size(), config); return message; }
public override void LoadFromQuery(QQuery query) { if (query.RequiresSort()) { _delegate = new IdListQueryResult(Transaction()); } _delegate.LoadFromQuery(query); }
public override void LoadFromQuery(QQuery query) { if (query.RequiresSort()) { _delegate = new IdListQueryResult(Transaction()); } _delegate.LoadFromQuery(query); }
protected MsgD WriteQueryResult(AbstractQueryResult queryResult, QueryEvaluationMode evaluationMode, ObjectExchangeConfiguration config) { if (evaluationMode == QueryEvaluationMode.Immediate) { return WriteImmediateQueryResult(queryResult, config); } return WriteLazyQueryResult(queryResult, config); }
/// <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); }
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; }
public _MappingIterator_56(AbstractQueryResult _enclosing, IEnumerator baseArg1) : base(baseArg1) { this._enclosing = _enclosing; }
public override int GetId(int index) { _delegate = _delegate.SupportElementAccess(); return _delegate.GetId(index); }
public override int IndexOf(int id) { _delegate = _delegate.SupportElementAccess(); return _delegate.IndexOf(id); }
public override void SortIds(IIntComparator cmp) { _delegate = _delegate.SupportSort(); _delegate.SortIds(cmp); }
public HybridQueryResult(Transaction transaction, QueryEvaluationMode mode) : base (transaction) { _delegate = ForMode(transaction, mode); }
public override int Size() { _delegate = _delegate.SupportSize(); return _delegate.Size(); }
public override void Sort(IQueryComparator cmp) { _delegate = _delegate.SupportSort(); _delegate.Sort(cmp); }
public LazyClientObjectSetStub(AbstractQueryResult queryResult, IIntIterator4 idIterator ) { _queryResult = queryResult; _idIterator = idIterator; }
public override void Sort(IQueryComparator cmp) { _delegate = _delegate.SupportSort(); _delegate.Sort(cmp); }
public _MappingIterator_56(AbstractQueryResult _enclosing, IEnumerator baseArg1) : base(baseArg1) { this._enclosing = _enclosing; }
public override void SortIds(IIntComparator cmp) { _delegate = _delegate.SupportSort(); _delegate.SortIds(cmp); }
public HybridQueryResult(Transaction transaction, QueryEvaluationMode mode) : base (transaction) { _delegate = ForMode(transaction, mode); }
public override int IndexOf(int id) { _delegate = _delegate.SupportElementAccess(); return(_delegate.IndexOf(id)); }
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; }
public override int Size() { _delegate = _delegate.SupportSize(); return(_delegate.Size()); }
internal ClientQueryResultIterator(AbstractQueryResult client) { _client = client; _ids = client.IterateIDs(); }
public _IEnumerator_74(AbstractQueryResult _enclosing, IEnumerator source) { this._enclosing = _enclosing; this.source = source; }