TableTEntity Class |
Namespace: Dse.Data.Linq
public class Table<TEntity> : CqlQuery<TEntity>, ITable, IQueryProvider
The TableTEntity type exposes the following members.
Name | Description | |
---|---|---|
TableTEntity(ISession) |
Creates a new instance of the Linq IQueryProvider that represents a table in Cassandra using Global configuration.
| |
TableTEntity(ISession, MappingConfiguration) | Creates a new instance of the Linq IQueryProvider that represents a table in Cassandra using the mapping configuration provided. Fluent configuration or attributes can be used to define mapping information. | |
TableTEntity(ISession, MappingConfiguration, String) | Creates a new instance of the Linq IQueryProvider that represents a table in Cassandra using the mapping configuration provided. Use this constructor if you want to use a different table name than the one defined in the mapping configuration. Fluent configuration or attributes can be used to define mapping information. | |
TableTEntity(ISession, MappingConfiguration, String, String) | Creates a new instance of the Linq IQueryProvider that represents a table in Cassandra using the mapping configuration provided. Use this constructor if you want to use a different table and keyspace names than the ones defined in the mapping configuration. Fluent configuration or attributes can be used to define mapping information. |
Name | Description | |
---|---|---|
BeginExecute | (Inherited from CqlQueryBaseTEntity.) | |
Create | ||
CreateIfNotExists | ||
CreateQueryTElement |
Creates a CqlQueryTEntity | |
DisableTracing |
Disable tracing for the statement.
(Inherited from Statement.) | |
EnableTracing |
Enables tracing for the statement
(Inherited from Statement.) | |
EndExecute | (Inherited from CqlQueryBaseTEntity.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Execute |
Evaluates the Linq query, executes the cql statement and adapts the results.
(Inherited from CqlQueryBaseTEntity.) | |
ExecuteAsync |
Evaluates the Linq query, executes asynchronously the cql statement and adapts the results.
(Inherited from CqlQueryBaseTEntity.) | |
ExecutePaged |
Executes the query and returns a page of results
(Inherited from CqlQueryTEntity.) | |
ExecutePagedAsync |
Asynchronously executes the query and returns a task of a page of results
(Inherited from CqlQueryTEntity.) | |
ExecutingAs |
Allows this statement to be executed as a different user/role than the one
currently authenticated (a.k.a. proxy execution).
(Inherited from Statement.) | |
GetEntityType | ||
GetEnumerator | (Inherited from CqlQueryTEntity.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetSession | ||
GetTable | (Inherited from CqlQueryBaseTEntity.) | |
GetTableType | ||
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Insert(TEntity) |
Returns a new CqlInsertTEntity command. Use
Execute method to execute the query.
| |
Insert(TEntity, Boolean) |
Returns a new CqlInsertTEntity command. Use
Execute method to execute the query.
| |
SetAutoPage |
Sets the paging behavior.
When set to true (default), the RowSet returned when executing this IStatement will automatically fetch the following result pages.
When false, the RowSet returned will only contain the rows contained in the result page and will not fetch additional pages.
(Inherited from Statement.) | |
SetConsistencyLevel | (Inherited from CqlQueryTEntity.) | |
SetHost |
Sets the Host that should handle this query.
(Inherited from Statement.)In the general case, use of this method is heavily discouraged and should only be used in the following cases:
Configuring a specific host causes the configured ILoadBalancingPolicy to be completely bypassed. However, if the load balancing policy dictates that the host is at distance Ignored or there is no active connectivity to the host, the request will fail with a NoHostAvailableException. | |
SetIdempotence |
Sets whether this statement is idempotent.
(Inherited from Statement.)Idempotence of the statement plays a role in ISpeculativeExecutionPolicy. If a statement is not idempotent, the driver will not schedule speculative executions for it. | |
SetOutgoingPayload |
Sets a custom outgoing payload for this statement.
Each time this statement is executed, this payload will be included in the request.
Once it is set using this method, the payload should not be modified.
(Inherited from Statement.) | |
SetPageSize |
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.
(Inherited from CqlQueryTEntity.) | |
SetPagingState |
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.
(Inherited from CqlQueryTEntity.) | |
SetReadTimeoutMillis |
Overrides the default per-host read timeout ReadTimeoutMillis for this statement.
(Inherited from Statement.) | |
SetRetryPolicy |
Sets the retry policy to use for this query.
(Inherited from Statement.)Calling this method is only required when you want to override the default RetryPolicy set in the cluster configuration for this request. Use a IExtendedRetryPolicy implementation to cover all error scenarios. | |
SetSerialConsistencyLevel | (Inherited from CqlQueryTEntity.) | |
SetTimestamp |
Sets the timestamp associated with this statement execution.
If provided, this will replace the server side assigned
timestamp as default timestamp. Note that a timestamp in the query itself will still override this timestamp.
(Inherited from Statement.) | |
ToString |
Generates and returns cql query for this instance
(Inherited from CqlQueryTEntity.) |
Name | Description | |
---|---|---|
AllowFilteringTEntity |
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.) | |
CountTEntity |
Returns the number of rows matching the query.
To execute this CqlScalar use Execute() method.
(Defined by CqlQueryExtensions.) | |
DeleteTEntity |
Returns a representation of a DELETE cql statement
(Defined by CqlQueryExtensions.) | |
DeleteIfTEntity |
Returns a representation of a DELETE ... IF ... cql statement, for Lightweight Transactions support
(Defined by CqlQueryExtensions.) | |
FirstTEntity | Overloaded.
Returns a CqlQuery which after execution will return the first element in a sequence.
To execute this CqlQuery use Execute() method.
(Defined by CqlQueryExtensions.) | |
FirstTSource(ExpressionFuncTSource, Boolean) | Overloaded.
Returns a CqlQuery which after execution returns the first element in a sequence that satisfies a specified condition.
To execute this CqlQuery use Execute() method.
(Defined by CqlQueryExtensions.) | |
FirstOrDefaultTEntity | Overloaded.
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.) | |
FirstOrDefaultTSource(ExpressionFuncTSource, Boolean) | Overloaded.
Returns a CqlQuery which after execution will return the first element of the sequence that satisfies a condition
or a default value if no such element is found.
To execute this CqlQuery use Execute() method.
(Defined by CqlQueryExtensions.) | |
OrderByTEntity, TKey |
Sorts the elements, which are returned from CqlQuery, in ascending order according to a key.
(Defined by CqlQueryExtensions.) | |
OrderByDescendingTEntity, TKey |
Sorts the elements, which are returned from CqlQuery, in ascending order according to a key.
(Defined by CqlQueryExtensions.) | |
SelectTEntity, TResult |
Projects each element of a sequence into a new form.
(Defined by CqlQueryExtensions.) | |
TakeTEntity |
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.) | |
ThenByTEntity, TKey |
Sorts the elements, which are returned from CqlQuery, in ascending order according to a key.
(Defined by CqlQueryExtensions.) | |
ThenByDescendingTEntity, TKey |
Sorts the elements, which are returned from CqlQuery, in descending order according to a key.
(Defined by CqlQueryExtensions.) | |
UpdateTEntity |
Returns a representation of a UPDATE cql statement
(Defined by CqlQueryExtensions.) | |
UpdateIfTEntity |
Returns a representation of a UPDATE ... IF ... cql statement, for Lightweight Transactions support
(Defined by CqlQueryExtensions.) | |
UpdateIfExistsTEntity |
Returns a representation of a UPDATE ... IF EXISTS cql statement, for Lightweight Transactions support.
(Defined by CqlQueryExtensions.) | |
WhereTEntity |
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.) |
Name | Description | |
---|---|---|
AutoPage |
Determines if the RowSet returned when executing this IStatement will automatically fetch the following result pages. Defaults to true.
(Inherited from Statement.) | |
ConsistencyLevel |
Gets the consistency level for this query.
(Inherited from Statement.) | |
ElementType | (Inherited from CqlQueryBaseTEntity.) | |
Expression | (Inherited from CqlQueryBaseTEntity.) | |
Host |
Gets the host configured on this Statement, or null if none is configured.
(Inherited from Statement.)In the general case, the host used to execute this Statement will depend on the configured ILoadBalancingPolicy and this property will return null. | |
IsIdempotent |
Determines if this statement is idempotent, i.e. whether it can be applied multiple times without
changing the result beyond the initial application.
(Inherited from Statement.)Idempotence of the statement plays a role in ISpeculativeExecutionPolicy. If a statement is not idempotent, the driver will not schedule speculative executions for it. When the property is null, the driver will use the default value from the GetDefaultIdempotence. | |
IsTracing |
Gets whether tracing is enabled for this query or not.
(Inherited from Statement.) | |
Keyspace |
Gets the keyspace this query operates on. The returned value should not be null only when the
IStatement applies to a different keyspace to the logged keyspace of the
ISession.
(Inherited from CqlQueryBaseTEntity.) | |
KeyspaceName |
Gets the name of the keyspace used. If null, it uses the active session keyspace.
| |
Name |
Gets the name of the Table in Cassandra
| |
OutgoingPayload |
Gets custom payload for that will be included when executing this Statement.
(Inherited from Statement.) | |
PageSize |
Gets query's page size.
(Inherited from Statement.) | |
PagingState |
This object represents the next page to be fetched if the query is multi page. It can be saved and reused
later on a different execution.
(Inherited from Statement.) | |
Provider |
IQueryable.Provider implementation
(Inherited from CqlQueryTEntity.) | |
QueryTrace |
After being executed, it retrieves the trace of the CQL query.
(Inherited from CqlQueryBaseTEntity.)Use EnableTracing(Boolean) to enable tracing. Note that enabling query trace introduces server-side overhead by storing request information, so it's recommended that you only enable query tracing when trying to identify possible issues / debugging. | |
QueryValues | (Inherited from Statement.) | |
ReadTimeoutMillis |
Gets the per-host read timeout for this statement.
(Inherited from Statement.)When the value is 0 or lower, the default value from the socket options will be used. | |
RetryPolicy |
Gets the retry policy sets for this query, if any.
(Inherited from Statement.) | |
RoutingKey | (Inherited from CqlQueryBaseTEntity.) | |
SerialConsistencyLevel |
Gets the serial consistency level for this query.
(Inherited from Statement.) | |
SkipMetadata | (Inherited from Statement.) | |
Timestamp |
Gets the timestamp associated with this statement execution.
(Inherited from Statement.) |