Apache Ignite.NET
Apache.Ignite.Linq.QueryOptions Class Reference

Cache query options. More...

Public Member Functions

 QueryOptions ()
 Initializes a new instance of the QueryOptions class. More...
 

Public Attributes

const int DefaultPageSize = SqlFieldsQuery.DefaultPageSize
 Default page size. More...
 

Properties

bool Local [get, set]
 Local flag. When set query will be executed only on local node, so only local entries will be returned as query result. More...
 
int PageSize [get, set]
 Page size, defaults to DefaultPageSize. More...
 
string TableName [get, set]
 Gets or sets the name of the table. More...
 
bool EnableDistributedJoins [get, set]
 Gets or sets a value indicating whether distributed joins should be enabled for this query. More...
 
bool EnforceJoinOrder [get, set]
 Gets or sets a value indicating whether join order of tables should be enforced. More...
 
TimeSpan Timeout [get, set]
 Gets or sets the query timeout. Query will be automatically cancelled if the execution timeout is exceeded. Default is TimeSpan.Zero, which means no timeout. More...
 
bool ReplicatedOnly [get, set]
 Gets or sets a value indicating whether this query contains only replicated tables. This is a hint for potentially more effective execution. More...
 
bool Colocated [get, set]
 Gets or sets a value indicating whether this query operates on colocated data. More...
 

Detailed Description

Constructor & Destructor Documentation

Apache.Ignite.Linq.QueryOptions.QueryOptions ( )

Member Data Documentation

const int Apache.Ignite.Linq.QueryOptions.DefaultPageSize = SqlFieldsQuery.DefaultPageSize

Property Documentation

bool Apache.Ignite.Linq.QueryOptions.Colocated
getset

Whenever Ignite executes a distributed query, it sends sub-queries to individual cluster members. If you know in advance that the elements of your query selection are colocated together on the same node and you group by colocated key (primary or affinity key), then Ignite can make significant performance and network optimizations by grouping data on remote nodes.

bool Apache.Ignite.Linq.QueryOptions.EnableDistributedJoins
getset

When disabled, join results will only contain colocated data (joins work locally). When enabled, joins work as expected, no matter how the data is distributed.

true if enable distributed joins should be enabled; otherwise, false.

bool Apache.Ignite.Linq.QueryOptions.EnforceJoinOrder
getset

When true, query optimizer will not reorder tables in join.

It is not recommended to enable this property until you are sure that your indexes and the query itself are correct and tuned as much as possible but query optimizer still produces wrong join order.

true if join order should be enforced; otherwise, false.

bool Apache.Ignite.Linq.QueryOptions.Local
getset

Defaults to false.

int Apache.Ignite.Linq.QueryOptions.PageSize
getset
bool Apache.Ignite.Linq.QueryOptions.ReplicatedOnly
getset
string Apache.Ignite.Linq.QueryOptions.TableName
getset

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 (null).

The name of the table.

TimeSpan Apache.Ignite.Linq.QueryOptions.Timeout
getset