/// <summary> /// Initializes a new instance of the <see cref="CacheQueryable{TKey, TValue}" /> class. /// </summary> /// <param name="cache">The cache.</param> /// <param name="queryOptions">The query options.</param> /// <param name="ignite">The ignite.</param> public CacheQueryable(ICacheInternal cache, QueryOptions queryOptions, IIgnite ignite = null) : base(new CacheFieldsQueryProvider(CacheQueryParser.Instance, new CacheFieldsQueryExecutor(cache, queryOptions), ignite, cache.GetConfiguration(), queryOptions.TableName, typeof(TValue))) { // No-op. }
/// <summary> /// Initializes a new instance of the <see cref="CacheFieldsQueryExecutor" /> class. /// </summary> /// <param name="cache">The executor function.</param> /// <param name="local">Local flag.</param> public CacheFieldsQueryExecutor(ICacheInternal cache, bool local) { Debug.Assert(cache != null); _cache = cache; _local = local; }
/// <summary> /// Initializes a new instance of the <see cref="CacheFieldsQueryExecutor" /> class. /// </summary> /// <param name="cache">The executor function.</param> /// <param name="options">Query options.</param> public CacheFieldsQueryExecutor(ICacheInternal cache, QueryOptions options) { Debug.Assert(cache != null); Debug.Assert(options != null); _cache = cache; _options = options; }
/// <summary> /// Initializes a new instance of the <see cref="CacheFieldsQueryExecutor" /> class. /// </summary> /// <param name="cache">The executor function.</param> /// <param name="local">Local flag.</param> /// <param name="pageSize">Size of the page.</param> /// <param name="enableDistributedJoins">Distributed joins flag.</param> /// <param name="enforceJoinOrder">Enforce join order flag.</param> public CacheFieldsQueryExecutor(ICacheInternal cache, bool local, int pageSize, bool enableDistributedJoins, bool enforceJoinOrder) { Debug.Assert(cache != null); _cache = cache; _local = local; _pageSize = pageSize; _enableDistributedJoins = enableDistributedJoins; _enforceJoinOrder = enforceJoinOrder; }