Apache Ignite.NET
Apache.Ignite.Linq.CacheLinqExtensions Class Reference

Extensions methods for ICache<TK,TV>. More...

Static Public Member Functions

static IQueryable< ICacheEntry< TKey, TValue > > AsCacheQueryable< TKey, TValue > (this ICache< TKey, TValue > cache)
 Gets an IQueryable<T> instance over this cache. More...
 
static IQueryable< ICacheEntry< TKey, TValue > > AsCacheQueryable< TKey, TValue > (this ICache< TKey, TValue > cache, bool local)
 Gets an IQueryable<T> instance over this cache. More...
 
static IQueryable< ICacheEntry< TKey, TValue > > AsCacheQueryable< TKey, TValue > (this ICache< TKey, TValue > cache, bool local, string tableName)
 Gets an IQueryable<T> instance over this cache. More...
 
static IQueryable< ICacheEntry< TKey, TValue > > AsCacheQueryable< TKey, TValue > (this ICache< TKey, TValue > cache, QueryOptions queryOptions)
 Gets an IQueryable<T> instance over this cache. More...
 

Detailed Description

Member Function Documentation

static IQueryable<ICacheEntry<TKey, TValue> > Apache.Ignite.Linq.CacheLinqExtensions.AsCacheQueryable< TKey, TValue > ( this ICache< TKey, TValue >  cache)
static

Resulting query will be translated to cache SQL query and executed over the cache instance via either ICache<TK,TV>.Query or ICache<TK,TV>.QueryFields, depending on requested result.

Result of this method (and subsequent query) can be cast to ICacheQueryable for introspection.

Template Parameters
TKeyThe type of the key.
TValueThe type of the value.
Parameters
cacheThe cache.
Returns
IQueryable<T> instance over this cache.
static IQueryable<ICacheEntry<TKey, TValue> > Apache.Ignite.Linq.CacheLinqExtensions.AsCacheQueryable< TKey, TValue > ( this ICache< TKey, TValue >  cache,
bool  local 
)
static

Resulting query will be translated to cache SQL query and executed over the cache instance via either ICache<TK,TV>.Query or ICache<TK,TV>.QueryFields, depending on requested result.

Result of this method (and subsequent query) can be cast to ICacheQueryable for introspection.

Template Parameters
TKeyThe type of the key.
TValueThe type of the value.
Parameters
cacheThe cache.
localLocal flag. When set query will be executed only on local node, so only local entries will be returned as query result.
Returns
IQueryable<T> instance over this cache.
static IQueryable<ICacheEntry<TKey, TValue> > Apache.Ignite.Linq.CacheLinqExtensions.AsCacheQueryable< TKey, TValue > ( this ICache< TKey, TValue >  cache,
bool  local,
string  tableName 
)
static

Resulting query will be translated to cache SQL query and executed over the cache instance via either ICache<TK,TV>.Query or ICache<TK,TV>.QueryFields, depending on requested result.

Result of this method (and subsequent query) can be cast to ICacheQueryable for introspection.

Template Parameters
TKeyThe type of the key.
TValueThe type of the value.
Parameters
cacheThe cache.
localLocal flag. When set query will be executed only on local node, so only local entries will be returned as query result.
tableNameName 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
IQueryable<T> instance over this cache.
static IQueryable<ICacheEntry<TKey, TValue> > Apache.Ignite.Linq.CacheLinqExtensions.AsCacheQueryable< TKey, TValue > ( this ICache< TKey, TValue >  cache,
QueryOptions  queryOptions 
)
static

Resulting query will be translated to cache SQL query and executed over the cache instance via either ICache<TK,TV>.Query or ICache<TK,TV>.QueryFields, depending on requested result.

Result of this method (and subsequent query) can be cast to ICacheQueryable for introspection.

Template Parameters
TKeyThe type of the key.
TValueThe type of the value.
Parameters
cacheThe cache.
queryOptionsThe query options.
Returns
IQueryable<T> instance over this cache.