Click or drag to resize

CqlQueryTEntity Class

Represents a Linq query that gets evaluated as a CQL statement.
Inheritance Hierarchy
SystemObject
  CassandraStatement
    Cassandra.Data.LinqCqlQueryBaseTEntity
      Cassandra.Data.LinqCqlQueryTEntity
        Cassandra.Data.LinqTableTEntity

Namespace:  Cassandra.Data.Linq
Assembly:  Cassandra (in Cassandra.dll) Version: 3.10.0
Syntax
C#
public class CqlQuery<TEntity> : CqlQueryBase<TEntity>, 
	IQueryable<TEntity>, IEnumerable<TEntity>, IEnumerable, IQueryable, 
	IOrderedQueryable

Type Parameters

TEntity

The CqlQueryTEntity type exposes the following members.

Properties
  NameDescription
Public propertyProvider
IQueryable.Provider implementation
Top
Methods
  NameDescription
Public methodExecutePaged
Executes the query and returns a page of results
Public methodExecutePaged(String)
Executes the query with the provided execution profile and returns a page of results
Public methodExecutePagedAsync
Asynchronously executes the query and returns a task of a page of results
Public methodExecutePagedAsync(String)
Asynchronously executes the query with the provided execution profile and returns a task of a page of results
Public methodGetEnumerator
Public methodSetConsistencyLevel
Public methodSetPageSize
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.
Public methodSetPagingState
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.
Public methodSetSerialConsistencyLevel
Public methodToString
Generates and returns cql query for this instance
(Overrides ObjectToString.)
Top
Extension Methods
  NameDescription
Public Extension MethodAllowFilteringTSource
The ALLOW FILTERING option allows to explicitly allow queries that require filtering. Please note that a query using ALLOW FILTERING may thus have unpredictable performance (for the definition above), i.e. even a query that selects a handful of records may exhibit performance that depends on the total amount of data stored in the cluster.
(Defined by CqlQueryExtensions.)
Public Extension MethodCountTSource
Returns the number of rows matching the query. To execute this CqlScalar use Execute() method.
(Defined by CqlQueryExtensions.)
Public Extension MethodDeleteTSource
Returns a representation of a DELETE cql statement
(Defined by CqlQueryExtensions.)
Public Extension MethodDeleteIfTSource
Returns a representation of a DELETE ... IF ... cql statement, for Lightweight Transactions support
(Defined by CqlQueryExtensions.)
Public Extension MethodFirstTSource
Returns a CqlQuery which after execution will return the first element in a sequence. To execute this CqlQuery use Execute() method.
(Defined by CqlQueryExtensions.)
Public Extension MethodFirstOrDefaultTSource
Returns a CqlQuery which after execution will return the first element of a sequence, or a default value if the sequence contains no elements. To execute this CqlQuery use Execute() method.
(Defined by CqlQueryExtensions.)
Public Extension MethodOrderByTSource, TKey
Sorts the elements, which are returned from CqlQuery, in ascending order according to a key.
(Defined by CqlQueryExtensions.)
Public Extension MethodOrderByDescendingTSource, TKey
Sorts the elements, which are returned from CqlQuery, in ascending order according to a key.
(Defined by CqlQueryExtensions.)
Public Extension MethodSelectTSource, TResult
Projects each element of a sequence into a new form.
(Defined by CqlQueryExtensions.)
Public Extension MethodTakeTSource
Returns a CqlQuery which after execution will return IEnumerable<TSource> with specified number of contiguous elements from the start of a sequence. To execute this CqlQuery use Execute() method.
(Defined by CqlQueryExtensions.)
Public Extension MethodThenByTSource, TKey
Sorts the elements, which are returned from CqlQuery, in ascending order according to a key.
(Defined by CqlQueryExtensions.)
Public Extension MethodThenByDescendingTSource, TKey
Sorts the elements, which are returned from CqlQuery, in descending order according to a key.
(Defined by CqlQueryExtensions.)
Public Extension MethodUpdateTSource
Returns a representation of a UPDATE cql statement
(Defined by CqlQueryExtensions.)
Public Extension MethodUpdateIfTSource
Returns a representation of a UPDATE ... IF ... cql statement, for Lightweight Transactions support
(Defined by CqlQueryExtensions.)
Public Extension MethodUpdateIfExistsTSource
Returns a representation of a UPDATE ... IF EXISTS cql statement, for Lightweight Transactions support.
(Defined by CqlQueryExtensions.)
Public Extension MethodWhereTSource
Returns a CqlQuery which after execution returns filtered sequence of values based on a predicate. To execute this CqlQuery use Execute() method.
(Defined by CqlQueryExtensions.)
Top
See Also