Class CacheClientLinqExtensions
Extensions methods for ICacheClient<TK, TV>.
Inheritance
Inherited Members
Namespace: Apache.Ignite.Linq
Assembly: Apache.Ignite.Linq.dll
Syntax
public static class CacheClientLinqExtensions
Methods
AsCacheQueryable<TKey, TValue>(ICacheClient<TKey, TValue>)
Gets an System.Linq.IQueryable<T> instance over this cache.
Resulting query will be translated to cache SQL query and executed over the cache instance via either Query(SqlFieldsQuery).
Result of this method (and subsequent query) can be cast to ICacheQueryable for introspection, or converted with ToCacheQueryable<T>(IQueryable<T>) extension method.
Declaration
public static IQueryable<ICacheEntry<TKey, TValue>> AsCacheQueryable<TKey, TValue>(this ICacheClient<TKey, TValue> cache)
Parameters
Type | Name | Description |
---|---|---|
ICacheClient<TKey, TValue> | cache | The cache. |
Returns
Type | Description |
---|---|
System.Linq.IQueryable<ICacheEntry<TKey, TValue>> | System.Linq.IQueryable<T> instance over this cache. |
Type Parameters
Name | Description |
---|---|
TKey | The type of the key. |
TValue | The type of the value. |
AsCacheQueryable<TKey, TValue>(ICacheClient<TKey, TValue>, QueryOptions)
Gets an System.Linq.IQueryable<T> instance over this cache.
Resulting query will be translated to cache SQL query and executed over the cache instance via either Query(SqlFieldsQuery).
Result of this method (and subsequent query) can be cast to ICacheQueryable for introspection.
Declaration
public static IQueryable<ICacheEntry<TKey, TValue>> AsCacheQueryable<TKey, TValue>(this ICacheClient<TKey, TValue> cache, QueryOptions queryOptions)
Parameters
Type | Name | Description |
---|---|---|
ICacheClient<TKey, TValue> | cache | The cache. |
QueryOptions | queryOptions | The query options. |
Returns
Type | Description |
---|---|
System.Linq.IQueryable<ICacheEntry<TKey, TValue>> | System.Linq.IQueryable<T> instance over this cache. |
Type Parameters
Name | Description |
---|---|
TKey | The type of the key. |
TValue | The type of the value. |
AsCacheQueryable<TKey, TValue>(ICacheClient<TKey, TValue>, Boolean)
Gets an System.Linq.IQueryable<T> instance over this cache.
Resulting query will be translated to cache SQL query and executed over the cache instance via either Query(SqlFieldsQuery).
Result of this method (and subsequent query) can be cast to ICacheQueryable for introspection.
Declaration
public static IQueryable<ICacheEntry<TKey, TValue>> AsCacheQueryable<TKey, TValue>(this ICacheClient<TKey, TValue> cache, bool local)
Parameters
Type | Name | Description |
---|---|---|
ICacheClient<TKey, TValue> | cache | The cache. |
System.Boolean | local | Local flag. When set query will be executed only on local node, so only local entries will be returned as query result. |
Returns
Type | Description |
---|---|
System.Linq.IQueryable<ICacheEntry<TKey, TValue>> | System.Linq.IQueryable<T> instance over this cache. |
Type Parameters
Name | Description |
---|---|
TKey | The type of the key. |
TValue | The type of the value. |
AsCacheQueryable<TKey, TValue>(ICacheClient<TKey, TValue>, Boolean, String)
Gets an System.Linq.IQueryable<T> instance over this cache.
Resulting query will be translated to cache SQL query and executed over the cache instance via either Query(SqlFieldsQuery).
Result of this method (and subsequent query) can be cast to ICacheQueryable for introspection.
Declaration
public static IQueryable<ICacheEntry<TKey, TValue>> AsCacheQueryable<TKey, TValue>(this ICacheClient<TKey, TValue> cache, bool local, string tableName)
Parameters
Type | Name | Description |
---|---|---|
ICacheClient<TKey, TValue> | cache | The cache. |
System.Boolean | local | Local flag. When set query will be executed only on local node, so only local entries will be returned as query result. |
System.String | tableName | Name of the table. Table name is equal to short class name of a cache value. When a cache has only one type of values, or only one QueryEntity defined, table name will be inferred and can be omitted. |
Returns
Type | Description |
---|---|
System.Linq.IQueryable<ICacheEntry<TKey, TValue>> | System.Linq.IQueryable<T> instance over this cache. |
Type Parameters
Name | Description |
---|---|
TKey | The type of the key. |
TValue | The type of the value. |