程序包 | 说明 |
---|---|
com.sequoiadb.base |
SequoiaDB Basic API
|
com.sequoiadb.datasource |
SequoiaDB Datasource API
|
限定符和类型 | 方法和说明 |
---|---|
void |
Sequoiadb.activateReplicaGroup(String rgName)
Active replica group by name.
|
void |
Domain.addGroups(BSONObject options)
Alter current domain to add groups
|
DBCursor |
DBCollection.aggregate(List<BSONObject> objs)
Execute aggregate operation in current collection.
|
void |
DBCollection.alterCollection(BSONObject options)
Alter the attributes of current collection.
|
void |
CollectionSpace.alterCollectionSpace(BSONObject options)
Alter the current collection space.
|
void |
Domain.alterDomain(BSONObject options)
Alter current domain.
|
void |
Sequoiadb.analyze()
Analyze all collections and indexes to collect statistics information
|
void |
Sequoiadb.analyze(BSONObject options)
Analyze collection or index to collect statistics information
|
void |
DBCollection.attachCollection(String subClFullName,
BSONObject options)
Attach the specified collection.
|
Node |
ReplicaGroup.attachNode(String hostName,
int port,
BSONObject configure)
Attach node.
|
void |
Sequoiadb.backupOffline(BSONObject options)
Backup the whole database or specified replica group.
|
void |
Sequoiadb.beginTransaction()
Begin the transaction.
|
void |
DBCollection.bulkInsert(List<BSONObject> insertor,
int flag)
已过时。
use insert(List
|
void |
Sequoiadb.cancelTask(long taskID,
boolean isAsync)
Cancel the specified task.
|
void |
Sequoiadb.changeConnectionOptions(ConfigOptions options)
已过时。
Create a new Sequoiadb instance instead..
|
void |
Sequoiadb.close()
Close the connection.
|
void |
DBLob.close()
Close the lob.
|
void |
DBCursor.close()
Close the cursor.
|
void |
Sequoiadb.closeAllCursors()
Close all the cursors created in current connection, we can't use those cursors to get
data again.
|
void |
Sequoiadb.commit()
Commit the transaction.
|
Sequoiadb |
Node.connect()
Connect to current node with the same username and password of coordination node.
|
Sequoiadb |
Node.connect(String username,
String password)
Connect to current node with username and password.
|
DBCollection |
CollectionSpace.createCollection(String collectionName)
Create the named collection in current collection space.
|
CollectionSpace |
Sequoiadb.createCollectionSpace(String csName)
Create the named collection space with default SDB_PAGESIZE_64K.
|
CollectionSpace |
Sequoiadb.createCollectionSpace(String csName,
BSONObject options)
Create collection space.
|
CollectionSpace |
Sequoiadb.createCollectionSpace(String csName,
int pageSize)
Create collection space.
|
Domain |
Sequoiadb.createDomain(String domainName,
BSONObject options)
Create a domain.
|
void |
DBCollection.createIdIndex(BSONObject options)
Create the id index.
|
void |
DBCollection.createIndex(String name,
BSONObject key,
boolean isUnique,
boolean enforced)
Create a index with name and key
|
void |
DBCollection.createIndex(String name,
BSONObject key,
boolean isUnique,
boolean enforced,
int sortBufferSize)
Create a index with name and key.
|
void |
DBCollection.createIndex(String name,
String key,
boolean isUnique,
boolean enforced)
Create a index with name and key.
|
void |
DBCollection.createIndex(String name,
String key,
boolean isUnique,
boolean enforced,
int sortBufferSize)
Create a index with name and key.
|
DBLob |
DBCollection.createLob()
Create a lob.
|
DBLob |
DBCollection.createLob(ObjectId id)
Create a lob with a given id.
|
Node |
ReplicaGroup.createNode(String hostName,
int port,
String dbPath)
Create node.
|
Node |
ReplicaGroup.createNode(String hostName,
int port,
String dbPath,
BSONObject configure)
Create node.
|
Node |
ReplicaGroup.createNode(String hostName,
int port,
String dbPath,
Map<String,String> configure)
已过时。
we have override this api by passing a "BSONObject" instead of a "Map"
|
ReplicaGroup |
Sequoiadb.createReplicaGroup(String rgName)
Create replica group by name.
|
void |
Sequoiadb.createUser(String username,
String password)
Create an user in current database.
|
void |
Sequoiadb.crtJSProcedure(String code)
Create a storage procedure.
|
void |
DBCollection.delete(BSONObject matcher)
Delete the matching BSONObject of current collection.
|
void |
DBCollection.delete(BSONObject matcher,
BSONObject hint)
Delete the matching BSONObject of current collection.
|
void |
DBCollection.delete(String matcher)
Delete the matching of current collection.
|
void |
DBCollection.delete(String matcher,
String hint)
Delete the matching bson's string of current collection.
|
void |
Sequoiadb.deleteConfig(BSONObject configs,
BSONObject options)
Force the node to delete configs online.
|
void |
DBCollection.detachCollection(String subClFullName)
Detach the specified collection.
|
void |
ReplicaGroup.detachNode(String hostName,
int port,
BSONObject configure)
Detach node.
|
void |
CollectionSpace.disableCapped()
Alter the current collection space to disable capped
|
void |
DBCollection.disableCompression()
Alter the attributes of current collection to disable compression
|
void |
DBCollection.disableSharding()
Alter the attributes of current collection to disable sharding
|
void |
Sequoiadb.disconnect()
已过时。
Use close() instead.
|
void |
Node.disconnect()
Disconnect from current node.
|
void |
CollectionSpace.drop()
已过时。
Use Sequoiadb.dropCollectionSpace() instead.
|
void |
CollectionSpace.dropCollection(String collectionName)
Remove the named collection of current collection space.
|
void |
Sequoiadb.dropCollectionSpace(String csName)
Remove the named collection space.
|
void |
Sequoiadb.dropDomain(String domainName)
Drop a domain.
|
void |
DBCollection.dropIdIndex()
Drop the id index.
|
void |
DBCollection.dropIndex(String name)
Remove the named index of current collection.
|
void |
CollectionSpace.enableCapped()
Alter the current collection space to enable capped
|
void |
DBCollection.enableCompression(BSONObject options)
Alter the attributes of current collection to enable compression
|
void |
DBCollection.enableSharding(BSONObject options)
Alter the attributes of current collection to enable sharding
|
Sequoiadb.SptEvalResult |
Sequoiadb.evalJS(String code)
Eval javascript code.
|
DBCursor |
Sequoiadb.exec(String sql)
Execute sql in database.
|
void |
Sequoiadb.execUpdate(String sql)
Execute sql in database.
|
DBCursor |
DBCollection.explain(BSONObject matcher,
BSONObject selector,
BSONObject orderBy,
BSONObject hint,
long skipRows,
long returnRows,
int flag,
BSONObject options)
Explain query of current collection.
|
void |
Sequoiadb.flushConfigure(BSONObject options)
Flush the options to configuration file.
|
DBCollection |
CollectionSpace.getCollection(String collectionName)
Get the named collection.
|
ArrayList<String> |
Sequoiadb.getCollectionNames()
Get all the collection names.
|
List<String> |
CollectionSpace.getCollectionNames()
Get all the collection names of current collection space.
|
CollectionSpace |
Sequoiadb.getCollectionSpace(String csName)
Get the named collection space.
|
ArrayList<String> |
Sequoiadb.getCollectionSpaceNames()
Get all the collection space names.
|
long |
DBCollection.getCount()
Get the amount of documents in current collection.
|
long |
DBCollection.getCount(BSONObject matcher)
Get the amount of matching documents in current collection.
|
long |
DBCollection.getCount(BSONObject matcher,
BSONObject hint)
Get the count of matching BSONObject in current collection.
|
long |
DBCollection.getCount(String matcher)
Get the amount of matching documents in current collection.
|
BSONObject |
DBCursor.getCurrent()
Get current document.
|
BSONObject |
ReplicaGroup.getDetail()
Get detail info of current replicaGroup
|
Domain |
Sequoiadb.getDomain(String domainName)
Get the specified domain.
|
DBCursor |
DBCollection.getIndex(String name)
已过时。
use "getIndexInfo" or "getIndexes" API instead.
|
DBCursor |
DBCollection.getIndexes()
Get all the indexes of current collection
|
BSONObject |
DBCollection.getIndexInfo(String name)
Get the information of specified index in current collection.
|
DBCursor |
Sequoiadb.getList(int listType,
BSONObject query,
BSONObject selector,
BSONObject orderBy)
Get the information of specified type.
|
Node |
ReplicaGroup.getMaster()
Get the master node of current replica group.
|
BSONObject |
DBCursor.getNext()
Get next document.
|
byte[] |
DBCursor.getNextRaw()
Get raw data of next record.
|
Node |
ReplicaGroup.getNode(String nodeName)
Get node by node's name (IP:PORT).
|
Node |
ReplicaGroup.getNode(String hostName,
int port)
Get node by hostName and port.
|
int |
ReplicaGroup.getNodeNum(Node.NodeStatus status)
已过时。
The status of node are invalid, never use this api again.
|
DBCursor |
DBCollection.getQueryMeta(BSONObject matcher,
BSONObject orderBy,
BSONObject hint,
long skipRows,
long returnRows,
int flag)
Get index blocks' or data blocks' information for concurrent query.
|
ReplicaGroup |
Sequoiadb.getReplicaGroup(int rgId)
Get replica group by id.
|
ReplicaGroup |
Sequoiadb.getReplicaGroup(String rgName)
Get replica group by name.
|
ArrayList<String> |
Sequoiadb.getReplicaGroupNames()
Get all the replica groups' name.
|
ArrayList<String> |
Sequoiadb.getReplicaGroupsInfo()
Get the information of the replica groups.
|
BSONObject |
Sequoiadb.getSessionAttr()
Get the attributes of the current session.
|
Node |
ReplicaGroup.getSlave()
Get the random slave node of current replica group, when have no slave node, return master node.
|
Node |
ReplicaGroup.getSlave(Collection<Integer> positions)
Get the slave node in the specified positions,
when have no slave node in the specified positions, return master node.
|
Node |
ReplicaGroup.getSlave(int... positions)
Get the slave node in the specified positions,
when have no slave node in the specified positions, return master node.
|
DBCursor |
Sequoiadb.getSnapshot(int snapType,
BSONObject matcher,
BSONObject selector,
BSONObject orderBy)
Get snapshot of the database.
|
DBCursor |
Sequoiadb.getSnapshot(int snapType,
BSONObject matcher,
BSONObject selector,
BSONObject orderBy,
BSONObject hint,
long skipRows,
long returnRows)
Get snapshot of the database.
|
DBCursor |
Sequoiadb.getSnapshot(int snapType,
String matcher,
String selector,
String orderBy)
Get snapshot of the database.
|
Node.NodeStatus |
Node.getStatus()
已过时。
The status of node are invalid, never use this api again.
|
ArrayList<String> |
Sequoiadb.getStorageUnits()
Get all the storage units.
|
boolean |
DBCursor.hasNext()
Judge whether the next document exists or not.
|
boolean |
DBCursor.hasNextRaw()
已过时。
always use DBCursor.hasNext()
|
Object |
DBCollection.insert(BSONObject insertor)
Insert a document into current collection, if the document
does not contain field "_id", it will be added.
|
void |
DBCollection.insert(List<BSONObject> insertor)
Insert a bulk of bson objects into current collection.
|
void |
DBCollection.insert(List<BSONObject> insertor,
int flag)
Insert a bulk of bson objects into current collection.
|
Object |
DBCollection.insert(String insertor)
Insert a document into current collection, if the document
does not contain field "_id", it will be added.
|
boolean |
CollectionSpace.isCollectionExist(String collectionName)
Verify the existence of collection in current collection space.
|
boolean |
Sequoiadb.isCollectionSpaceExist(String csName)
Verify the existence of collection space.
|
boolean |
Sequoiadb.isDomainExist(String domainName)
Verify the existence of domain.
|
boolean |
Sequoiadb.isValid()
Send a test message to database to test whether the connection is valid or not.
|
DBCursor |
Sequoiadb.listBackup(BSONObject options,
BSONObject matcher,
BSONObject selector,
BSONObject orderBy)
List the backups.
|
DBCursor |
Domain.listCLInDomain()
List all the collections in current domain.
|
DBCursor |
Sequoiadb.listCollections()
Get all the collections.
|
DBCursor |
Sequoiadb.listCollectionSpaces()
Get all the collection spaces.
|
DBCursor |
Domain.listCSInDomain()
List all the collection spaces in current domain.
|
DBCursor |
Sequoiadb.listDomains(BSONObject matcher,
BSONObject selector,
BSONObject orderBy,
BSONObject hint)
List domains.
|
DBCursor |
DBCollection.listLobs()
Get all of the lobs in current collection.
|
DBCursor |
Sequoiadb.listProcedures(BSONObject condition)
List the storage procedures.
|
DBCursor |
Sequoiadb.listReplicaGroups()
List all the replica group.
|
DBCursor |
Sequoiadb.listTasks(BSONObject matcher,
BSONObject selector,
BSONObject orderBy,
BSONObject hint)
List the tasks.
|
void |
Sequoiadb.loadCollectionSpace(String csName,
BSONObject options) |
void |
DBLob.lock(long offset,
long length)
Lock LOB section for write mode.
|
void |
DBLob.lockAndSeek(long offset,
long length)
Lock LOB section for write mode and seek to the offset position.
|
DBLob |
DBCollection.openLob(ObjectId id)
Open an existing lob with id.
|
DBLob |
DBCollection.openLob(ObjectId id,
int mode)
Open an existing lob with id.
|
void |
DBCollection.pop(BSONObject options)
Pop records from the collection.
|
DBCursor |
DBCollection.query()
Get all documents of current collection.
|
DBCursor |
DBCollection.query(BSONObject matcher,
BSONObject selector,
BSONObject orderBy,
BSONObject hint)
Get the matching documents in current collection.
|
DBCursor |
DBCollection.query(BSONObject matcher,
BSONObject selector,
BSONObject orderBy,
BSONObject hint,
int flag)
Get the matching documents in current collection.
|
DBCursor |
DBCollection.query(BSONObject matcher,
BSONObject selector,
BSONObject orderBy,
BSONObject hint,
long skipRows,
long returnRows)
Get the matching documents in current collection.
|
DBCursor |
DBCollection.query(BSONObject matcher,
BSONObject selector,
BSONObject orderBy,
BSONObject hint,
long skipRows,
long returnRows,
int flags)
Get the matching documents in current collection.
|
DBCursor |
DBCollection.query(DBQuery matcher)
Get the matching documents in current collection.
|
DBCursor |
DBCollection.query(String matcher,
String selector,
String orderBy,
String hint)
Get the matching documents in current collection.
|
DBCursor |
DBCollection.query(String matcher,
String selector,
String orderBy,
String hint,
int flag)
Get the matching documents in current collection.
|
DBCursor |
DBCollection.query(String matcher,
String selector,
String orderBy,
String hint,
long skipRows,
long returnRows)
Get the matching documents in current collection.
|
DBCursor |
DBCollection.queryAndRemove(BSONObject matcher,
BSONObject selector,
BSONObject orderBy,
BSONObject hint,
long skipRows,
long returnRows,
int flag)
Get the matching documents in current collection and remove.
|
DBCursor |
DBCollection.queryAndUpdate(BSONObject matcher,
BSONObject selector,
BSONObject orderBy,
BSONObject hint,
BSONObject update,
long skipRows,
long returnRows,
int flag,
boolean returnNew)
Get the matching documents in current collection and update.
|
BSONObject |
DBCollection.queryOne()
Get one document from current collection.
|
BSONObject |
DBCollection.queryOne(BSONObject matcher,
BSONObject selector,
BSONObject orderBy,
BSONObject hint,
int flag)
Get one matched document from current collection.
|
int |
DBLob.read(byte[] b)
Read up to
b.length bytes of data from this lob into
an array of bytes. |
int |
DBLob.read(byte[] b,
int off,
int len)
Read up to
len bytes of data from this lob into
an array of bytes. |
void |
DBLob.read(OutputStream out)
Read the content to the output stream.
|
void |
Sequoiadb.releaseResource()
Release the resource of the connection.
|
void |
Sequoiadb.removeBackup(BSONObject options)
Remove the backups.
|
void |
CollectionSpace.removeDomain()
Alter the current collection space to remove domain
|
void |
Domain.removeGroups(BSONObject options)
Alter current domain to remove groups
|
void |
DBCollection.removeLob(ObjectId lobId)
Remove an existing lob.
|
void |
ReplicaGroup.removeNode(String hostName,
int port,
BSONObject configure)
Remove node.
|
void |
Sequoiadb.removeReplicaGroup(String rgName)
Remove replica group by name.
|
void |
Sequoiadb.removeUser(String username,
String password)
Remove the specified user from current database.
|
void |
CollectionSpace.renameCollection(String oldName,
String newName) |
void |
Sequoiadb.renameCollectionSpace(String oldName,
String newName) |
void |
Sequoiadb.resetSnapshot()
Reset the snapshot.
|
void |
Sequoiadb.resetSnapshot(BSONObject options)
Reset the snapshot.
|
void |
Sequoiadb.rmProcedure(String name)
Remove a store procedure.
|
void |
Sequoiadb.rollback()
Rollback the transaction.
|
<T> void |
DBCollection.save(List<T> type)
Insert an object into current collection.
|
<T> void |
DBCollection.save(List<T> type,
Boolean ignoreNullValue)
Insert an object into current collection.
|
<T> void |
DBCollection.save(List<T> type,
Boolean ignoreNullValue,
int flag)
Insert an object into current collection.
|
<T> void |
DBCollection.save(T type)
Insert an object into current collection.
|
<T> void |
DBCollection.save(T type,
Boolean ignoreNullValue)
Insert an object into current collection
when save include update shardingKey field, the shardingKey modify action is not take effect, but the other
field update is take effect.
|
<T> void |
DBCollection.save(T type,
Boolean ignoreNullValue,
int flag)
Insert an object into current collection.
|
void |
DBLob.seek(long size,
int seekType)
Change the read or write position of the lob.
|
void |
Domain.setAttributes(BSONObject options)
Alter current domain to set attributes.
|
void |
DBCollection.setAttributes(BSONObject options)
Alter the attributes of current collection
Can't alter attributes about split in partition collection; After altering a collection to
be a partition collection, need to split this collection manually.
|
void |
CollectionSpace.setAttributes(BSONObject options)
Alter the current collection space to set attributes.
|
void |
CollectionSpace.setDomain(BSONObject options)
Alter the current collection space to set domain
|
void |
Domain.setGroups(BSONObject options)
Alter current domain to set groups
|
void |
DBCollection.setMainKeys(String[] keys)
Set the main keys used in save(). if no main keys are set, use the
default main key "_id".
|
void |
Sequoiadb.setSessionAttr(BSONObject options)
Set the attributes of the current session.
|
void |
DBCollection.split(String sourceGroupName,
String destGroupName,
BSONObject splitCondition,
BSONObject splitEndCondition)
Split the specified collection from source group to target group by range.
|
void |
DBCollection.split(String sourceGroupName,
String destGroupName,
double percent)
Split the specified collection from source group to target group by percent.
|
long |
DBCollection.splitAsync(String sourceGroupName,
String destGroupName,
BSONObject splitCondition,
BSONObject splitEndCondition)
Split the specified collection from source group to target group by range asynchronously.
|
long |
DBCollection.splitAsync(String sourceGroupName,
String destGroupName,
double percent)
Split the specified collection from source group to target group by percent asynchronously.
|
void |
ReplicaGroup.start()
Start current replica group.
|
void |
Node.start()
Start current node.
|
void |
ReplicaGroup.stop()
Stop current replica group.
|
void |
Node.stop()
Stop current node.
|
void |
Sequoiadb.sync()
Sync the whole database to disk.
|
void |
Sequoiadb.sync(BSONObject options)
Sync the database to disk.
|
void |
DBCollection.truncate()
Truncate the collection.
|
void |
DBCollection.truncateLob(ObjectId lobId,
long length)
Truncate an existing lob.
|
void |
Sequoiadb.unloadCollectionSpace(String csName,
BSONObject options) |
void |
DBCollection.update(BSONObject matcher,
BSONObject modifier,
BSONObject hint)
Update the BSONObject of current collection.
|
void |
DBCollection.update(BSONObject matcher,
BSONObject modifier,
BSONObject hint,
int flag)
Update the BSONObject of current collection.
|
void |
DBCollection.update(DBQuery query)
Update the document of current collection.
|
void |
DBCollection.update(String matcher,
String modifier,
String hint)
Update the BSONObject of current collection.
|
void |
DBCollection.update(String matcher,
String modifier,
String hint,
int flag)
Update the BSONObject of current collection.
|
void |
Sequoiadb.updateConfig(BSONObject configs,
BSONObject options)
Force the node to update configs online.
|
void |
DBCollection.upsert(BSONObject matcher,
BSONObject modifier,
BSONObject hint)
Update the BSONObject of current collection, insert if no matching.
|
void |
DBCollection.upsert(BSONObject matcher,
BSONObject modifier,
BSONObject hint,
BSONObject setOnInsert)
Update the BSONObject of current collection, insert if no matching.
|
void |
DBCollection.upsert(BSONObject matcher,
BSONObject modifier,
BSONObject hint,
BSONObject setOnInsert,
int flag)
Update the BSONObject of current collection, insert if no matching.
|
void |
Sequoiadb.waitTasks(long[] taskIDs)
Wait the tasks to finish.
|
void |
DBLob.write(byte[] b)
Write
b.length bytes from the specified
byte array to this lob. |
void |
DBLob.write(byte[] b,
int off,
int len)
Write
len bytes from the specified
byte array starting at offset off to this lob. |
void |
DBLob.write(InputStream in)
Write bytes from the input stream to this lob.
|
构造器和说明 |
---|
Sequoiadb(List<String> connStrings,
String username,
String password,
ConfigOptions options)
Use a random valid address to connect to database.
|
Sequoiadb(List<String> connStrings,
String username,
String password,
com.sequoiadb.net.ConfigOptions options)
已过时。
Use com.sequoiadb.base.ConfigOptions instead of com.sequoiadb.net.ConfigOptions.
|
Sequoiadb(String host,
int port,
String username,
String password) |
Sequoiadb(String host,
int port,
String username,
String password,
ConfigOptions options) |
Sequoiadb(String host,
int port,
String username,
String password,
com.sequoiadb.net.ConfigOptions options)
已过时。
Use com.sequoiadb.base.ConfigOptions instead of com.sequoiadb.net.ConfigOptions.
|
Sequoiadb(String username,
String password)
已过时。
do not use this Constructor, should provide server address explicitly
|
Sequoiadb(String connString,
String username,
String password) |
Sequoiadb(String connString,
String username,
String password,
ConfigOptions options) |
Sequoiadb(String connString,
String username,
String password,
com.sequoiadb.net.ConfigOptions options)
已过时。
Use com.sequoiadb.base.ConfigOptions instead of com.sequoiadb.net.ConfigOptions.
|
SequoiadbDatasource(List<String> urls,
String username,
String password,
ConfigOptions nwOpt,
DatasourceOptions dsOpt)
已过时。
Use com.sequoiadb.datasource.SequoiadbDatasource instead.
|
SequoiadbDatasource(List<String> urls,
String username,
String password,
com.sequoiadb.net.ConfigOptions nwOpt,
DatasourceOptions dsOpt)
已过时。
|
SequoiadbDatasource(List<String> urls,
String username,
String password,
ConfigOptions nwOpt,
com.sequoiadb.base.SequoiadbOption dsOpt)
已过时。
Use com.sequoiadb.datasource.SequoiadbDatasource instead.
|
SequoiadbDatasource(List<String> urls,
String username,
String password,
com.sequoiadb.net.ConfigOptions nwOpt,
com.sequoiadb.base.SequoiadbOption dsOpt)
已过时。
|
SequoiadbDatasource(String url,
String username,
String password,
DatasourceOptions dsOpt)
已过时。
Use com.sequoiadb.datasource.SequoiadbDatasource instead.
|
限定符和类型 | 方法和说明 |
---|---|
void |
SequoiadbDatasource.addCoord(String url)
Add coord address.
|
void |
SequoiadbDatasource.close(Sequoiadb sdb)
已过时。
use releaseConnection() instead
|
Sequoiadb |
SequoiadbDatasource.getConnection()
Get a connection from current connection pool.
|
Sequoiadb |
SequoiadbDatasource.getConnection(long timeout)
Get a connection from current connection pool.
|
DatasourceOptions |
SequoiadbDatasource.getDatasourceOptions()
Get a copy of the connection pool options.
|
void |
SequoiadbDatasource.releaseConnection(Sequoiadb sdb)
Put the connection back to the connection pool.
|
void |
SequoiadbDatasource.removeCoord(String url)
Remove coord address.
|
void |
SequoiadbDatasource.updateDatasourceOptions(DatasourceOptions dsOpt)
Update connection pool options.
|
构造器和说明 |
---|
SequoiadbDatasource(List<String> urls,
String username,
String password,
ConfigOptions nwOpt,
DatasourceOptions dsOpt)
When offer several addresses for connection pool to use, if
some of them are not available(invalid address, network error, coord shutdown,
catalog replica group is not available), we will put these addresses
into a queue, and check them periodically.
|
SequoiadbDatasource(List<String> urls,
String username,
String password,
com.sequoiadb.net.ConfigOptions nwOpt,
DatasourceOptions dsOpt)
已过时。
Use com.sequoiadb.base.ConfigOptions instead of com.sequoiadb.net.ConfigOptions.
|
SequoiadbDatasource(String url,
String username,
String password,
DatasourceOptions dsOpt) |
Copyright © 2018. All rights reserved.