Uses of Class
com.datastax.driver.core.Statement
-
Packages that use Statement Package Description com.datastax.driver.core The main package for the Java Driver for Cassandra.com.datastax.driver.core.policies Policies that allow to control some of the behavior of the ScyllaDB Java driver.com.datastax.driver.core.querybuilder A CQL3 query builder.com.datastax.driver.core.schemabuilder A CQL3 schema builder. -
-
Uses of Statement in com.datastax.driver.core
Subclasses of Statement in com.datastax.driver.core Modifier and Type Class Description classBatchStatementA statement that groups a number ofStatementso they get executed as a batch.classBoundStatementA prepared statement with values bound to the bind variables.classRegularStatementA regular (non-prepared and non batched) CQL statement.classSimpleStatementA simpleRegularStatementimplementation built directly from a query string.classStatementWrapperBase class for customStatementimplementations that wrap another statement.Methods in com.datastax.driver.core that return Statement Modifier and Type Method Description StatementStatement. disableTracing()Disables tracing for this query.StatementStatementWrapper. disableTracing()StatementStatement. enableTracing()Enables tracing for this query.StatementStatementWrapper. enableTracing()StatementBatchStatement. getRoutingStatement(ProtocolVersion protocolVersion, CodecRegistry codecRegistry)Returns the first statement in this batch that provides a routing key for the given protocol version and codec registry.StatementExecutionInfo. getStatement()Get the statement that has been executed.StatementStatement. setConsistencyLevel(ConsistencyLevel consistency)Sets the consistency level for the query.StatementStatementWrapper. setConsistencyLevel(ConsistencyLevel consistency)StatementStatement. setDefaultTimestamp(long defaultTimestamp)Sets the default timestamp for this query (in microseconds since the epoch).StatementStatementWrapper. setDefaultTimestamp(long defaultTimestamp)StatementStatement. setFetchSize(int fetchSize)Sets the query fetch size.StatementStatementWrapper. setFetchSize(int fetchSize)StatementStatement. setHost(Host host)Sets theHostthat should handle this query.StatementStatementWrapper. setHost(Host host)StatementStatement. setIdempotent(boolean idempotent)Sets whether this statement is idempotent.StatementStatementWrapper. setIdempotent(boolean idempotent)StatementStatement. setNowInSeconds(int nowInSeconds)Sets the "now in seconds" to use when applying the request (for testing purposes).StatementStatementWrapper. setNowInSeconds(int nowInSeconds)StatementStatement. setOutgoingPayload(Map<String,ByteBuffer> payload)Set the given outgoing payload on this statement.StatementStatementWrapper. setOutgoingPayload(Map<String,ByteBuffer> payload)StatementStatement. setPagingState(PagingState pagingState)Sets the paging state.StatementStatement. setPagingState(PagingState pagingState, CodecRegistry codecRegistry)Sets the paging state.StatementStatementWrapper. setPagingState(PagingState pagingState)StatementStatementWrapper. setPagingState(PagingState pagingState, CodecRegistry codecRegistry)StatementStatement. setPagingStateUnsafe(byte[] pagingState)Sets the paging state.StatementStatementWrapper. setPagingStateUnsafe(byte[] pagingState)StatementStatement. setReadTimeoutMillis(int readTimeoutMillis)Overrides the default per-host read timeout (SocketOptions.getReadTimeoutMillis()) for this statement.StatementStatementWrapper. setReadTimeoutMillis(int readTimeoutMillis)StatementStatement. setRetryPolicy(RetryPolicy policy)Sets the retry policy to use for this query.StatementStatementWrapper. setRetryPolicy(RetryPolicy policy)StatementStatement. setSerialConsistencyLevel(ConsistencyLevel serialConsistency)Sets the serial consistency level for the query.StatementStatementWrapper. setSerialConsistencyLevel(ConsistencyLevel serialConsistency)Methods in com.datastax.driver.core that return types with arguments of type Statement Modifier and Type Method Description Collection<Statement>BatchStatement. getStatements()The statements that have been added to this batch so far.Methods in com.datastax.driver.core with parameters of type Statement Modifier and Type Method Description BatchStatementBatchStatement. add(Statement statement)Adds a new statement to this batch.protected intQueryLogger. append(Statement statement, StringBuilder buffer, int remaining)protected ClusterClusterWidePercentileTracker. computeKey(Host host, Statement statement, Exception exception)protected abstract ObjectPercentileTracker. computeKey(Host host, Statement statement, Exception exception)Computes a key used to categorize measurements.protected HostPerHostPercentileTracker. computeKey(Host host, Statement statement, Exception exception)ResultSetAbstractSession. execute(Statement statement)Executes the provided query.ResultSetSession. execute(Statement statement)Executes the provided query.ResultSetFutureSession. executeAsync(Statement statement)Executes the provided query asynchronously.longPercentileTracker. getLatencyAtPercentile(Host host, Statement statement, Exception exception, double percentile)Returns the request latency at a given percentile.protected booleanPercentileTracker. include(Host host, Statement statement, Exception exception)Determines whether a particular measurement should be included.protected voidQueryLogger. logQuery(Statement statement, Exception exception, org.slf4j.Logger logger, String message)protected voidQueryLogger. maybeLogErrorQuery(Host host, Statement statement, Exception exception, long latencyMs)protected voidQueryLogger.ConstantThresholdQueryLogger. maybeLogNormalOrSlowQuery(Host host, Statement statement, long latencyMs)protected voidQueryLogger.DynamicThresholdQueryLogger. maybeLogNormalOrSlowQuery(Host host, Statement statement, long latencyMs)protected abstract voidQueryLogger. maybeLogNormalOrSlowQuery(Host host, Statement statement, long latencyMs)protected voidQueryLogger. maybeLogNormalQuery(Host host, Statement statement, long latencyMs)protected voidQueryLogger.ConstantThresholdQueryLogger. maybeLogSlowQuery(Host host, Statement statement, long latencyMs)protected voidQueryLogger.DynamicThresholdQueryLogger. maybeLogSlowQuery(Host host, Statement statement, long latencyMs, long threshold)protected StringQueryLogger. statementAsString(Statement statement)voidLatencyTracker. update(Host host, Statement statement, Exception exception, long newLatencyNanos)A method that is called after each request to a Cassandra node with the duration of that operation.voidPercentileTracker. update(Host host, Statement statement, Exception exception, long newLatencyNanos)voidQueryLogger. update(Host host, Statement statement, Exception exception, long newLatencyNanos)A method that is called after each request to a Cassandra node with the duration of that operation.Method parameters in com.datastax.driver.core with type arguments of type Statement Modifier and Type Method Description BatchStatementBatchStatement. addAll(Iterable<? extends Statement> statements)Adds multiple statements to this batch.protected static BooleanStatement. isBatchIdempotent(Collection<? extends Statement> statements)Constructors in com.datastax.driver.core with parameters of type Statement Constructor Description StatementWrapper(Statement wrapped)Builds a new instance. -
Uses of Statement in com.datastax.driver.core.policies
Methods in com.datastax.driver.core.policies with parameters of type Statement Modifier and Type Method Description protected booleanIdempotenceAwareRetryPolicy. isIdempotent(Statement statement)Deprecated.Determines whether the given statement is idempotent or not.SpeculativeExecutionPolicy.SpeculativeExecutionPlanConstantSpeculativeExecutionPolicy. newPlan(String loggedKeyspace, Statement statement)SpeculativeExecutionPolicy.SpeculativeExecutionPlanNoSpeculativeExecutionPolicy. newPlan(String loggedKeyspace, Statement statement)SpeculativeExecutionPolicy.SpeculativeExecutionPlanPercentileSpeculativeExecutionPolicy. newPlan(String loggedKeyspace, Statement statement)SpeculativeExecutionPolicy.SpeculativeExecutionPlanSpeculativeExecutionPolicy. newPlan(String loggedKeyspace, Statement statement)Returns the plan to use for a new query.Iterator<Host>DCAwareRoundRobinPolicy. newQueryPlan(String loggedKeyspace, Statement statement)Returns the hosts to use for a new query.Iterator<Host>ErrorAwarePolicy. newQueryPlan(String loggedKeyspace, Statement statement)Iterator<Host>HostFilterPolicy. newQueryPlan(String loggedKeyspace, Statement statement)Returns the hosts to use for a new query.Iterator<Host>LatencyAwarePolicy. newQueryPlan(String loggedKeyspace, Statement statement)Returns the hosts to use for a new query.Iterator<Host>LoadBalancingPolicy. newQueryPlan(String loggedKeyspace, Statement statement)Returns the hosts to use for a new query.Iterator<Host>PagingOptimizingLoadBalancingPolicy. newQueryPlan(String loggedKeyspace, Statement statement)Iterator<Host>RackAwareRoundRobinPolicy. newQueryPlan(String loggedKeyspace, Statement statement)Returns the hosts to use for a new query.Iterator<Host>RoundRobinPolicy. newQueryPlan(String loggedKeyspace, Statement statement)Returns the hosts to use for a new query.Iterator<Host>TokenAwarePolicy. newQueryPlan(String loggedKeyspace, Statement statement)Returns the hosts to use for a new query.RetryPolicy.RetryDecisionDefaultRetryPolicy. onReadTimeout(Statement statement, ConsistencyLevel cl, int requiredResponses, int receivedResponses, boolean dataRetrieved, int nbRetry)Defines whether to retry and at which consistency level on a read timeout.RetryPolicy.RetryDecisionDowngradingConsistencyRetryPolicy. onReadTimeout(Statement statement, ConsistencyLevel cl, int requiredResponses, int receivedResponses, boolean dataRetrieved, int nbRetry)Deprecated.Defines whether to retry and at which consistency level on a read timeout.RetryPolicy.RetryDecisionFallthroughRetryPolicy. onReadTimeout(Statement statement, ConsistencyLevel cl, int requiredResponses, int receivedResponses, boolean dataRetrieved, int nbRetry)Defines whether to retry and at which consistency level on a read timeout.RetryPolicy.RetryDecisionIdempotenceAwareRetryPolicy. onReadTimeout(Statement statement, ConsistencyLevel cl, int requiredResponses, int receivedResponses, boolean dataRetrieved, int nbRetry)Deprecated.RetryPolicy.RetryDecisionLoggingRetryPolicy. onReadTimeout(Statement statement, ConsistencyLevel cl, int requiredResponses, int receivedResponses, boolean dataRetrieved, int nbRetry)RetryPolicy.RetryDecisionRetryPolicy. onReadTimeout(Statement statement, ConsistencyLevel cl, int requiredResponses, int receivedResponses, boolean dataRetrieved, int nbRetry)Defines whether to retry and at which consistency level on a read timeout.RetryPolicy.RetryDecisionDefaultRetryPolicy. onRequestError(Statement statement, ConsistencyLevel cl, DriverException e, int nbRetry)Defines whether to retry and at which consistency level on an unexpected error.RetryPolicy.RetryDecisionDowngradingConsistencyRetryPolicy. onRequestError(Statement statement, ConsistencyLevel cl, DriverException e, int nbRetry)Deprecated.Defines whether to retry and at which consistency level on an unexpected error.RetryPolicy.RetryDecisionFallthroughRetryPolicy. onRequestError(Statement statement, ConsistencyLevel cl, DriverException e, int nbRetry)Defines whether to retry and at which consistency level on an unexpected error.RetryPolicy.RetryDecisionIdempotenceAwareRetryPolicy. onRequestError(Statement statement, ConsistencyLevel cl, DriverException e, int nbRetry)Deprecated.RetryPolicy.RetryDecisionLoggingRetryPolicy. onRequestError(Statement statement, ConsistencyLevel cl, DriverException e, int nbRetry)RetryPolicy.RetryDecisionRetryPolicy. onRequestError(Statement statement, ConsistencyLevel cl, DriverException e, int nbRetry)Defines whether to retry and at which consistency level on an unexpected error.RetryPolicy.RetryDecisionDefaultRetryPolicy. onUnavailable(Statement statement, ConsistencyLevel cl, int requiredReplica, int aliveReplica, int nbRetry)Defines whether to retry and at which consistency level on an unavailable exception.RetryPolicy.RetryDecisionDowngradingConsistencyRetryPolicy. onUnavailable(Statement statement, ConsistencyLevel cl, int requiredReplica, int aliveReplica, int nbRetry)Deprecated.Defines whether to retry and at which consistency level on an unavailable exception.RetryPolicy.RetryDecisionFallthroughRetryPolicy. onUnavailable(Statement statement, ConsistencyLevel cl, int requiredReplica, int aliveReplica, int nbRetry)Defines whether to retry and at which consistency level on an unavailable exception.RetryPolicy.RetryDecisionIdempotenceAwareRetryPolicy. onUnavailable(Statement statement, ConsistencyLevel cl, int requiredReplica, int aliveReplica, int nbRetry)Deprecated.RetryPolicy.RetryDecisionLoggingRetryPolicy. onUnavailable(Statement statement, ConsistencyLevel cl, int requiredReplica, int aliveReplica, int nbRetry)RetryPolicy.RetryDecisionRetryPolicy. onUnavailable(Statement statement, ConsistencyLevel cl, int requiredReplica, int aliveReplica, int nbRetry)Defines whether to retry and at which consistency level on an unavailable exception.RetryPolicy.RetryDecisionDefaultRetryPolicy. onWriteTimeout(Statement statement, ConsistencyLevel cl, WriteType writeType, int requiredAcks, int receivedAcks, int nbRetry)Defines whether to retry and at which consistency level on a write timeout.RetryPolicy.RetryDecisionDowngradingConsistencyRetryPolicy. onWriteTimeout(Statement statement, ConsistencyLevel cl, WriteType writeType, int requiredAcks, int receivedAcks, int nbRetry)Deprecated.Defines whether to retry and at which consistency level on a write timeout.RetryPolicy.RetryDecisionFallthroughRetryPolicy. onWriteTimeout(Statement statement, ConsistencyLevel cl, WriteType writeType, int requiredAcks, int receivedAcks, int nbRetry)Defines whether to retry and at which consistency level on a write timeout.RetryPolicy.RetryDecisionIdempotenceAwareRetryPolicy. onWriteTimeout(Statement statement, ConsistencyLevel cl, WriteType writeType, int requiredAcks, int receivedAcks, int nbRetry)Deprecated.RetryPolicy.RetryDecisionLoggingRetryPolicy. onWriteTimeout(Statement statement, ConsistencyLevel cl, WriteType writeType, int requiredAcks, int receivedAcks, int nbRetry)RetryPolicy.RetryDecisionRetryPolicy. onWriteTimeout(Statement statement, ConsistencyLevel cl, WriteType writeType, int requiredAcks, int receivedAcks, int nbRetry)Defines whether to retry and at which consistency level on a write timeout.booleanErrorAwarePolicy.ErrorFilter. shouldConsiderError(Exception e, Host host, Statement statement)Whether an error should be counted in the host's error rate. -
Uses of Statement in com.datastax.driver.core.querybuilder
Subclasses of Statement in com.datastax.driver.core.querybuilder Modifier and Type Class Description classBatchA built BATCH statement.static classBatch.OptionsThe options of a BATCH statement.classBuiltStatementCommon ancestor to statements generated with theQueryBuilder.classDeleteA built DELETE statement.static classDelete.ConditionsConditions for a DELETE statement.static classDelete.OptionsThe options of a DELETE statement.static classDelete.WhereThe WHERE clause of a DELETE statement.classInsertA builtINSERTstatement.static classInsert.OptionsThe options of anINSERTstatement.classSelectA built SELECT statement.static classSelect.OptionsThe options of a SELECT statement.static classSelect.WhereTheWHEREclause of aSELECTstatement.classTruncateA built TRUNCATE statement.classUpdateA built UPDATE statement.static classUpdate.AssignmentsThe assignments of an UPDATE statement.static classUpdate.ConditionsConditions for an UPDATE statement.static classUpdate.IfExistsstatic classUpdate.OptionsThe options of a UPDATE statement.static classUpdate.WhereThe WHERE clause of an UPDATE statement. -
Uses of Statement in com.datastax.driver.core.schemabuilder
Subclasses of Statement in com.datastax.driver.core.schemabuilder Modifier and Type Class Description classAbstractCreateStatement<T extends AbstractCreateStatement<T>>static classAlter.OptionsThe table options of an ALTER TABLE statement.classCreateA built CREATE TABLE statement.static classCreate.OptionsThe table options of a CREATE TABLE statement.classCreateTypeA built CREATE TYPE statement.classDropA built DROP statement.classDropKeyspaceA built DROP KEYSPACE statement.classKeyspaceOptionsThe keyspace options used in CREATE KEYSPACE or ALTER KEYSPACE statements.classSchemaStatementA DDL statement generated bySchemaBuilder.classTableOptions<T extends TableOptions>The table options used in a CREATE TABLE or ALTER TABLE statement.
-