Package | Description |
---|---|
com.datastax.dse.driver.api.core.graph | |
com.datastax.oss.driver.api.core |
The core API of the driver, that deals with query execution and cluster metadata.
|
com.datastax.oss.driver.api.core.cql | |
com.datastax.oss.driver.api.core.retry | |
com.datastax.oss.driver.api.core.servererrors |
Modifier and Type | Field and Description |
---|---|
protected ConsistencyLevel |
GraphStatementBuilderBase.consistencyLevel |
protected ConsistencyLevel |
GraphStatementBuilderBase.readConsistencyLevel |
protected ConsistencyLevel |
GraphStatementBuilderBase.writeConsistencyLevel |
Modifier and Type | Method and Description |
---|---|
ConsistencyLevel |
GraphStatement.getConsistencyLevel()
Returns the consistency level to use for the statement.
|
ConsistencyLevel |
GraphStatement.getReadConsistencyLevel()
The consistency level to use for the internal read queries that will be produced by this
statement.
|
ConsistencyLevel |
GraphStatement.getWriteConsistencyLevel()
The consistency level to use for the internal write queries that will be produced by this
statement.
|
Modifier and Type | Method and Description |
---|---|
SelfT |
GraphStatement.setConsistencyLevel(ConsistencyLevel newConsistencyLevel)
Sets the consistency level to use for this statement.
|
SelfT |
GraphStatementBuilderBase.setConsistencyLevel(ConsistencyLevel consistencyLevel) |
SelfT |
GraphStatement.setReadConsistencyLevel(ConsistencyLevel newReadConsistencyLevel)
Sets the read consistency level.
|
SelfT |
GraphStatementBuilderBase.setReadConsistencyLevel(ConsistencyLevel readConsistencyLevel) |
SelfT |
GraphStatement.setWriteConsistencyLevel(ConsistencyLevel newWriteConsistencyLevel)
Sets the write consistency level.
|
SelfT |
GraphStatementBuilderBase.setWriteConsistencyLevel(ConsistencyLevel writeConsistencyLevel) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultConsistencyLevel
A default consistency level supported by the driver out of the box.
|
Modifier and Type | Field and Description |
---|---|
static ConsistencyLevel |
ConsistencyLevel.ALL |
static ConsistencyLevel |
ConsistencyLevel.ANY |
static ConsistencyLevel |
ConsistencyLevel.EACH_QUORUM |
static ConsistencyLevel |
ConsistencyLevel.LOCAL_ONE |
static ConsistencyLevel |
ConsistencyLevel.LOCAL_QUORUM |
static ConsistencyLevel |
ConsistencyLevel.LOCAL_SERIAL |
static ConsistencyLevel |
ConsistencyLevel.ONE |
static ConsistencyLevel |
ConsistencyLevel.QUORUM |
static ConsistencyLevel |
ConsistencyLevel.SERIAL |
static ConsistencyLevel |
ConsistencyLevel.THREE |
static ConsistencyLevel |
ConsistencyLevel.TWO |
Modifier and Type | Field and Description |
---|---|
protected ConsistencyLevel |
StatementBuilder.consistencyLevel |
protected ConsistencyLevel |
StatementBuilder.serialConsistencyLevel |
Modifier and Type | Method and Description |
---|---|
ConsistencyLevel |
Statement.getConsistencyLevel()
Returns the
ConsistencyLevel to use for the statement. |
ConsistencyLevel |
PrepareRequest.getConsistencyLevelForBoundStatements()
The consistency level to use for the bound statements that will be created from the prepared
statement or
null to use the default value from the configuration. |
ConsistencyLevel |
Statement.getSerialConsistencyLevel()
Returns the serial
ConsistencyLevel to use for the statement. |
ConsistencyLevel |
PrepareRequest.getSerialConsistencyLevelForBoundStatements()
The serial consistency level to use for the bound statements that will be created from the
prepared statement or
null to use the default value from the configuration. |
Modifier and Type | Method and Description |
---|---|
SelfT |
StatementBuilder.setConsistencyLevel(ConsistencyLevel consistencyLevel) |
SelfT |
Statement.setConsistencyLevel(ConsistencyLevel newConsistencyLevel)
Sets the
ConsistencyLevel to use for this statement. |
SelfT |
StatementBuilder.setSerialConsistencyLevel(ConsistencyLevel serialConsistencyLevel) |
SelfT |
Statement.setSerialConsistencyLevel(ConsistencyLevel newSerialConsistencyLevel)
Sets the serial
ConsistencyLevel to use for this statement. |
Constructor and Description |
---|
BoundStatementBuilder(PreparedStatement preparedStatement,
ColumnDefinitions variableDefinitions,
ByteBuffer[] values,
String executionProfileName,
DriverExecutionProfile executionProfile,
CqlIdentifier routingKeyspace,
ByteBuffer routingKey,
Token routingToken,
Map<String,ByteBuffer> customPayload,
Boolean idempotent,
boolean tracing,
long timestamp,
ByteBuffer pagingState,
int pageSize,
ConsistencyLevel consistencyLevel,
ConsistencyLevel serialConsistencyLevel,
Duration timeout,
CodecRegistry codecRegistry,
ProtocolVersion protocolVersion) |
Modifier and Type | Method and Description |
---|---|
RetryDecision |
RetryPolicy.onReadTimeout(Request request,
ConsistencyLevel cl,
int blockFor,
int received,
boolean dataPresent,
int retryCount)
Whether to retry when the server replied with a
READ_TIMEOUT error; this indicates a
server-side timeout during a read query, i.e. |
RetryDecision |
RetryPolicy.onUnavailable(Request request,
ConsistencyLevel cl,
int required,
int alive,
int retryCount)
Whether to retry when the server replied with an
UNAVAILABLE error; this indicates that
the coordinator determined that there were not enough replicas alive to perform a query with
the requested consistency level. |
RetryDecision |
RetryPolicy.onWriteTimeout(Request request,
ConsistencyLevel cl,
WriteType writeType,
int blockFor,
int received,
int retryCount)
Whether to retry when the server replied with a
WRITE_TIMEOUT error; this indicates a
server-side timeout during a write query, i.e. |
Modifier and Type | Method and Description |
---|---|
ConsistencyLevel |
QueryConsistencyException.getConsistencyLevel()
The consistency level of the operation that failed.
|
ConsistencyLevel |
UnavailableException.getConsistencyLevel()
The consistency level of the operation triggering this exception.
|
Constructor and Description |
---|
QueryConsistencyException(Node coordinator,
String message,
ConsistencyLevel consistencyLevel,
int received,
int blockFor,
ExecutionInfo executionInfo,
boolean writableStackTrace) |
ReadFailureException(Node coordinator,
ConsistencyLevel consistencyLevel,
int received,
int blockFor,
int numFailures,
boolean dataPresent,
Map<InetAddress,Integer> reasonMap) |
ReadTimeoutException(Node coordinator,
ConsistencyLevel consistencyLevel,
int received,
int blockFor,
boolean dataPresent) |
UnavailableException(Node coordinator,
ConsistencyLevel consistencyLevel,
int required,
int alive) |
WriteFailureException(Node coordinator,
ConsistencyLevel consistencyLevel,
int received,
int blockFor,
WriteType writeType,
int numFailures,
Map<InetAddress,Integer> reasonMap) |
WriteTimeoutException(Node coordinator,
ConsistencyLevel consistencyLevel,
int received,
int blockFor,
WriteType writeType) |
Copyright © 2017–2024. All rights reserved.