Class CollectionOptions
java.lang.Object
com.datastax.astra.client.core.options.BaseOptions<CollectionOptions>
com.datastax.astra.client.collections.CollectionOptions
- All Implemented Interfaces:
Cloneable
The options to use for the data API client.
-
Field Summary
Fields inherited from class com.datastax.astra.client.core.options.BaseOptions
commandType, dataAPIClientOptions, serializer, token
-
Constructor Summary
ConstructorDescriptionDefault constructor nor overriding token nor options but stilling setting the default timeouts and serializer for collection.CollectionOptions
(String token, DataAPIClientOptions options) Constructor with options and not token override. -
Method Summary
Methods inherited from class com.datastax.astra.client.core.options.BaseOptions
adminAdditionalHeaders, clone, commandType, dataAPIClientOptions, databaseAdditionalHeaders, embeddingApiKey, embeddingAuthProvider, getCommandType, getDataAPIClientOptions, getRequestTimeout, getRequestTimeout, getSerializer, getTimeout, getTimeout, getToken, httpClientOptions, registerObserver, serializer, timeout, timeout, timeout, timeoutOptions, token, toString, unregisterObserver
-
Constructor Details
-
CollectionOptions
public CollectionOptions()Default constructor nor overriding token nor options but stilling setting the default timeouts and serializer for collection. -
CollectionOptions
Constructor with options and not token override.- Parameters:
token
- the token to use for the databaseoptions
- data API client options
-
-
Method Details
-
getKeyspace
Gets keyspace- Returns:
- value of keyspace
-