Class CqlQuery<TEntity>
Represents a Linq query that gets evaluated as a CQL statement.
Inheritance
System.Object
CqlQuery<TEntity>
Implements
System.Linq.IQueryable<TEntity>
System.Collections.Generic.IEnumerable<TEntity>
System.Linq.IOrderedQueryable
System.Linq.IQueryable
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Dse.dll
Syntax
public class CqlQuery<TEntity> : CqlQueryBase<TEntity>, IInternalStatement, IStatement, IQueryable<TEntity>, IEnumerable<TEntity>, IOrderedQueryable, IQueryable, IEnumerable
Type Parameters
Properties
Provider
IQueryable.Provider implementation
Declaration
public IQueryProvider Provider { get; }
Property Value
Type |
Description |
System.Linq.IQueryProvider |
|
Methods
ExecutePaged()
Executes the query and returns a page of results
Declaration
public IPage<TEntity> ExecutePaged()
Returns
Type |
Description |
IPage<TEntity> |
|
ExecutePaged(String)
Executes the query with the provided execution profile and returns a page of results
Declaration
public IPage<TEntity> ExecutePaged(string executionProfile)
Parameters
Type |
Name |
Description |
System.String |
executionProfile |
|
Returns
Type |
Description |
IPage<TEntity> |
|
ExecutePagedAsync()
Asynchronously executes the query and returns a task of a page of results
Declaration
public Task<IPage<TEntity>> ExecutePagedAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task<IPage<TEntity>> |
|
ExecutePagedAsync(String)
Asynchronously executes the query with the provided execution profile and returns a task of a page of results
Declaration
public Task<IPage<TEntity>> ExecutePagedAsync(string executionProfile)
Parameters
Type |
Name |
Description |
System.String |
executionProfile |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<IPage<TEntity>> |
|
GetCql(out Object[])
Declaration
protected override string GetCql(out object[] values)
Parameters
Type |
Name |
Description |
System.Object[] |
values |
|
Returns
Type |
Description |
System.String |
|
Overrides
Dse.Data.Linq.CqlQueryBase<TEntity>.GetCql(System.Object[])
GetEnumerator()
Declaration
public IEnumerator<TEntity> GetEnumerator()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<TEntity> |
|
SetConsistencyLevel(Nullable<ConsistencyLevel>)
Declaration
public CqlQuery<TEntity> SetConsistencyLevel(ConsistencyLevel? consistencyLevel)
Parameters
Returns
SetPageSize(Int32)
Sets the page size for this query.
The page size controls how much resulting rows will be retrieved
simultaneously (the goal being to avoid loading too much results
in memory for queries yielding large results). Please note that
while value as low as 1 can be used, it is highly discouraged to
use such a low value in practice as it will yield very poor
performance. If in doubt, leaving the default is probably a good
idea.
Declaration
public CqlQuery<TEntity> SetPageSize(int pageSize)
Parameters
Type |
Name |
Description |
System.Int32 |
pageSize |
|
Returns
Type |
Description |
CqlQuery<TEntity> |
This instance
|
SetPagingState(Byte[])
Sets the paging state, a token representing the current page state of query used to continue paging by retrieving the following result page.
Setting the paging state will disable automatic paging.
Declaration
public CqlQuery<TEntity> SetPagingState(byte[] pagingState)
Parameters
Type |
Name |
Description |
System.Byte[] |
pagingState |
|
Returns
Type |
Description |
CqlQuery<TEntity> |
This instance
|
SetSerialConsistencyLevel(ConsistencyLevel)
Declaration
public CqlQuery<TEntity> SetSerialConsistencyLevel(ConsistencyLevel consistencyLevel)
Parameters
Returns
ToString()
Generates and returns cql query for this instance
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type |
Description |
System.Collections.IEnumerator |
|
Implements
System.Linq.IQueryable<T>
System.Collections.Generic.IEnumerable<T>
System.Linq.IOrderedQueryable
System.Linq.IQueryable
System.Collections.IEnumerable
Extension Methods