public class NosqlDbFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NosqlDbFactory.CloudSimProvider
A simple provider that uses a manufactured id for use by the
Cloud Simulator.
|
Constructor and Description |
---|
NosqlDbFactory(NosqlDbConfig config) |
Modifier and Type | Method and Description |
---|---|
static NosqlDbFactory |
createCloudFactory(String endpoint,
String configFile)
Creates a NosqlDbFactory object for a cloud service configuration.
|
static NosqlDbFactory |
createCloudFactory(String endpoint,
String configFile,
String profileName)
Creates a NosqlDbFactory object for a cloud service configuration.
|
static NosqlDbFactory |
createCloudSimFactory(String endpoint)
Creates a NosqlDbFactory object for a cloud sim configuration.
|
static NosqlDbFactory |
createProxyFactory(String endpoint)
Creates a NosqlDbFactory object for an on-prem server configuration.
|
static NosqlDbFactory |
createProxyFactory(String endpoint,
String user,
char[] password)
Creates a NosqlDbFactory object for an on-prem server configuration.
|
NosqlCapacityMode |
getDefaultCapacityMode()
Returns the config value
NosqlDbConfig.getDefaultCapacityMode() . |
int |
getDefaultReadUnits()
Returns the config value
NosqlDbConfig.getDefaultReadUnits() . |
int |
getDefaultStorageGB()
Returns the config value
NosqlDbConfig.getDefaultStorageGB() . |
int |
getDefaultWriteUnits()
Returns the config value
NosqlDbConfig.getDefaultWriteUnits() . |
static String |
getLibraryVersion()
Returns the current version of the NoSQL DB Sprint Data SDK, as a
string in an x.y.z format.
|
oracle.nosql.driver.NoSQLHandle |
getNosqlClient() |
int |
getQueryCacheCapacity()
Returns the capacity of the prepared query cache.
|
int |
getQueryCacheLifetime()
Returns the lifetime of the prepared query cache in milliseconds.
|
int |
getTableReqPollInterval()
Returns the table request poll interval in milliseconds.
|
int |
getTableReqTimeout()
Returns the table request timeout in milliseconds.
|
int |
getTimestampPrecision()
Returns the precision of the Timestamp NoSQL DB type when creating a
new table.
|
public NosqlDbFactory(NosqlDbConfig config)
public oracle.nosql.driver.NoSQLHandle getNosqlClient()
public static NosqlDbFactory createCloudFactory(String endpoint, String configFile) throws IOException
IOException
public static NosqlDbFactory createCloudFactory(String endpoint, String configFile, String profileName) throws IOException
IOException
public static NosqlDbFactory createCloudSimFactory(String endpoint)
public static NosqlDbFactory createProxyFactory(String endpoint)
public static NosqlDbFactory createProxyFactory(String endpoint, String user, char[] password)
public int getQueryCacheCapacity()
Constants.DEFAULT_QUERY_CACHE_CAPACITY
.public int getQueryCacheLifetime()
Constants.DEFAULT_QUERY_CACHE_LIFETIME_MS
.public int getTableReqTimeout()
Constants.DEFAULT_TABLE_REQ_TIMEOUT_MS
public int getTableReqPollInterval()
Constants.DEFAULT_TABLE_REQ_POLL_INTEVEL_MS
public int getTimestampPrecision()
Constants.DEFAULT_TIMESTAMP_PRECISION
.In the context of a CREATE TABLE statement, a precision must be explicitly specified. This restriction is to prevent users from inadvertently creating TIMESTAMP values with precision 9 (which takes more space) when in reality they don't need that high precision.
See Timestamp documentation for more details.
public int getDefaultStorageGB()
NosqlDbConfig.getDefaultStorageGB()
.public NosqlCapacityMode getDefaultCapacityMode()
NosqlDbConfig.getDefaultCapacityMode()
.public int getDefaultReadUnits()
NosqlDbConfig.getDefaultReadUnits()
.public int getDefaultWriteUnits()
NosqlDbConfig.getDefaultWriteUnits()
.public static String getLibraryVersion()
Copyright © 2022 Oracle Corporation. All rights reserved.