Package com.datastax.oss.driver.api.core
The core API of the driver, that deals with query execution and cluster metadata.
-
Interface Summary Interface Description AsyncAutoCloseable An object that can be closed in an asynchronous, non-blocking manner.AsyncPagingIterable<ElementT,SelfT extends AsyncPagingIterable<ElementT,SelfT>> An iterable of elements which are fetched asynchronously by the driver, possibly in multiple requests.ConsistencyLevel The consistency level of a request.CqlSession The default session type built by the driver.MappedAsyncPagingIterable<ElementT> The result of callingAsyncPagingIterable.map(Function)on another async iterable.MavenCoordinates PagingIterable<ElementT> An iterable of elements which are fetched synchronously by the driver, possibly in multiple requests.ProtocolVersion A version of the native protocol used by the driver to communicate with the server. -
Class Summary Class Description CqlIdentifier The identifier of CQL element (keyspace, table, column, etc).CqlSessionBuilder Helper class to build aCqlSessioninstance.DriverTimeoutException.NodeDiagnostics Per-node diagnostic snapshot captured at timeout time.Version A structured version number. -
Enum Summary Enum Description CQL4SkipMetadataResolveMethod DefaultConsistencyLevel A default consistency level supported by the driver out of the box.DefaultProtocolVersion A protocol version supported by default by the driver.RequestRoutingType The type of routing for a given request. -
Exception Summary Exception Description AllNodesFailedException Thrown when a query failed on all the coordinators it was tried on.DriverException Base class for all exceptions thrown by the driver.DriverExecutionException Thrown by synchronous wrapper methods (such asSyncCqlSession.execute(Statement), when the underlying future was completed with a checked exception.DriverTimeoutException Thrown when a driver request timed out.InvalidKeyspaceException Thrown when a session gets created with an invalid keyspace.NodeUnavailableException Indicates that aNodewas selected in a query plan, but it had no connection available.NoNodeAvailableException Specialization ofAllNodesFailedExceptionwhen no coordinators were tried.RequestThrottlingException Thrown if the session uses a request throttler, and it didn't allow the current request to execute.UnsupportedProtocolVersionException Indicates that we've attempted to connect to a Cassandra node with a protocol version that it cannot handle (e.g., connecting to a C* 2.1 node with protocol version 4).