private MsgD WriteImmediateQueryResult(AbstractQueryResult queryResult, ObjectExchangeConfiguration config) { IIntIterator4 idIterator = queryResult.IterateIDs(); MsgD message = BuildQueryResultMessage(0, idIterator, queryResult.Size(), config); return(message); }
private MsgD WriteLazyQueryResult(AbstractQueryResult queryResult, ObjectExchangeConfiguration config) { int queryResultId = GenerateID(); int maxCount = Config().PrefetchObjectCount(); IIntIterator4 idIterator = queryResult.IterateIDs(); MsgD message = BuildQueryResultMessage(queryResultId, idIterator, maxCount, config ); IServerMessageDispatcher serverThread = ServerMessageDispatcher(); serverThread.MapQueryResultToID(new LazyClientObjectSetStub(queryResult, idIterator ), queryResultId); return(message); }
public virtual void Reset() { _idIterator = _queryResult.IterateIDs(); }
internal ClientQueryResultIterator(AbstractQueryResult client) { _client = client; _ids = client.IterateIDs(); }