Class CacheClientLinqExtensions
Extensions methods for ICacheClient<TK, TV>.
Inheritance
Namespace: Apache.Ignite.Linq
Assembly: Apache.Ignite.Linq.dll
Syntax
public static class CacheClientLinqExtensions : object
Methods
AsCacheQueryable<TKey, TValue>(ICacheClient<TKey, TValue>)
Gets an
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 |
---|---|
IQueryable<ICacheEntry<TKey, TValue>> |
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
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 |
---|---|
IQueryable<ICacheEntry<TKey, TValue>> |
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
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 |
---|---|
IQueryable<ICacheEntry<TKey, TValue>> |
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
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 |
---|---|
IQueryable<ICacheEntry<TKey, TValue>> |
Type Parameters
Name | Description |
---|---|
TKey | The type of the key. |
TValue | The type of the value. |