Package | Description |
---|---|
com.sequoiadb.base |
SequoiaDB Basic API
|
com.sequoiadb.datasource |
SequoiaDB Datasource API
|
Modifier and Type | Method and Description |
---|---|
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 |
DataSource.alterDataSource(BSONObject option)
Modify the attributes of the current data source.
|
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 options)
Attach node.
|
void |
Sequoiadb.backup(BSONObject options)
Backup database.
|
void |
Sequoiadb.backupOffline(BSONObject options)
Deprecated.
Rename to "backup".
|
void |
Sequoiadb.beginTransaction()
Begin the transaction.
|
InsertResult |
DBCollection.bulkInsert(List<BSONObject> records)
Insert a bulk of bson objects into current collection.
|
InsertResult |
DBCollection.bulkInsert(List<BSONObject> records,
InsertOption option)
Insert a bulk of bson objects into current collection.
|
void |
DBCollection.bulkInsert(List<BSONObject> insertor,
int flags)
Deprecated.
Use
DBCollection.bulkInsert(List, InsertOption) instead. |
void |
Sequoiadb.cancelTask(long taskID,
boolean isAsync)
Cancel the specified task.
|
void |
Sequoiadb.changeConnectionOptions(ConfigOptions options)
Deprecated.
Create a new Sequoiadb instance instead.
|
void |
DBCursor.close()
Close the cursor.
|
void |
DBLob.close()
Close the lob.
|
void |
Sequoiadb.close()
Close the connection.
|
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()
Deprecated.
This function is deprecated
|
Sequoiadb |
Node.connect(String username,
String password)
Deprecated.
This function is deprecated
|
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.
|
DataSource |
Sequoiadb.createDataSource(String dataSourceName,
String addresses,
String user,
String password,
String type,
BSONObject option)
Create data source.
|
Domain |
Sequoiadb.createDomain(String domainName,
BSONObject options)
Create a domain.
|
void |
DBCollection.createIdIndex(BSONObject options)
Create the id index.
|
void |
DBCollection.createIndex(String indexName,
BSONObject indexKeys,
boolean isUnique,
boolean enforced)
Create a index with indexName and indexKeys
|
void |
DBCollection.createIndex(String indexName,
BSONObject indexKeys,
boolean isUnique,
boolean enforced,
int sortBufferSize)
Create a index with indexName and indexKeys.
|
void |
DBCollection.createIndex(String indexName,
BSONObject indexKeys,
BSONObject options)
Create a index with name and key.
|
void |
DBCollection.createIndex(String indexName,
String indexKeys,
boolean isUnique,
boolean enforced)
Create a index with indexName and indexKeys.
|
void |
DBCollection.createIndex(String indexName,
String indexKeys,
boolean isUnique,
boolean enforced,
int sortBufferSize)
Create a index with indexName and indexKeys.
|
DBLob |
DBCollection.createLob()
Create a lob.
|
DBLob |
DBCollection.createLob(ObjectId id)
Create a lob with a given id.
|
ObjectId |
DBCollection.createLobID()
Just create a lobID from server.
|
ObjectId |
DBCollection.createLobID(Date d)
Just create a lobID from server.
|
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)
Deprecated.
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)
Deprecated.
Use
DBCollection.deleteRecords(BSONObject) instead. |
void |
DBCollection.delete(BSONObject matcher,
BSONObject hint)
Deprecated.
Use
DBCollection.deleteRecords(BSONObject, DeleteOption) instead. |
void |
DBCollection.delete(BSONObject matcher,
BSONObject hint,
int flag)
Deprecated.
Use
DBCollection.deleteRecords(BSONObject, DeleteOption) instead. |
void |
DBCollection.delete(String matcher)
Deprecated.
Use
DBCollection.deleteRecords(BSONObject) instead. |
void |
DBCollection.delete(String matcher,
String hint)
Deprecated.
Use
DBCollection.deleteRecords(BSONObject) instead. |
void |
Sequoiadb.deleteConfig(BSONObject configs,
BSONObject options)
Force the node to delete configs online.
|
DeleteResult |
DBCollection.deleteRecords(BSONObject matcher)
Delete the matching records of current collection.
|
DeleteResult |
DBCollection.deleteRecords(BSONObject matcher,
DeleteOption option)
Delete the matching records of current collection.
|
void |
DBCollection.detachCollection(String subClFullName)
Detach the specified collection.
|
void |
ReplicaGroup.detachNode(String hostName,
int port,
BSONObject options)
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 |
Node.disconnect()
Disconnect from current node.
|
void |
Sequoiadb.disconnect()
Deprecated.
Use close() instead.
|
void |
CollectionSpace.drop()
Deprecated.
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.dropCollectionSpace(String csName,
BSONObject options)
Remove the named collection space.
|
void |
Sequoiadb.dropDataSource(String dataSourceName)
Drop data source.
|
void |
Sequoiadb.dropDomain(String domainName)
Drop a domain.
|
void |
DBCollection.dropIdIndex()
Drop the id index.
|
void |
DBCollection.dropIndex(String indexName)
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.
|
List<String> |
CollectionSpace.getCollectionNames()
Get all the collection names of current collection space.
|
ArrayList<String> |
Sequoiadb.getCollectionNames()
Get all the collection names.
|
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)
Deprecated.
Use
DBCollection.getCount(BSONObject) instead. |
BSONObject |
DBCursor.getCurrent()
Get current document.
|
DataSource |
Sequoiadb.getDataSource(String dataSourceName)
Get data source.
|
BSONObject |
ReplicaGroup.getDetail()
Get detail info of current replicaGroup
|
Domain |
Sequoiadb.getDomain(String domainName)
Get the specified domain.
|
DBCursor |
DBCollection.getIndex(String indexName)
Deprecated.
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.
|
BSONObject |
DBCollection.getIndexStat(String name)
Get the statistics of the index.
|
BSONObject |
DBCollection.getIndexStat(String name,
boolean detail)
Get the statistics of the index.
|
DBCursor |
Sequoiadb.getList(int listType,
BSONObject query,
BSONObject selector,
BSONObject orderBy)
Get the information of specified type.
|
DBCursor |
Sequoiadb.getList(int listType,
BSONObject query,
BSONObject selector,
BSONObject orderBy,
BSONObject hint,
long skipRows,
long returnRows)
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)
Deprecated.
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 |
DBLob.getRunTimeDetail()
Get the run time detail information of lob.
|
BSONObject |
Sequoiadb.getSessionAttr()
Get the attributes of the current session from the local cache if possible.
|
BSONObject |
Sequoiadb.getSessionAttr(boolean useCache)
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)
Deprecated.
|
Node.NodeStatus |
Node.getStatus()
Deprecated.
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()
Deprecated.
always use DBCursor.hasNext()
|
Object |
DBCollection.insert(BSONObject insertor)
Deprecated.
Use
DBCollection.insertRecord(BSONObject) instead. |
BSONObject |
DBCollection.insert(BSONObject insertor,
int flags)
Deprecated.
Use
DBCollection.insertRecord(BSONObject, InsertOption) instead. |
void |
DBCollection.insert(List<BSONObject> insertor)
Deprecated.
Use
DBCollection.bulkInsert(List) instead. |
void |
DBCollection.insert(List<BSONObject> insertor,
int flags)
Deprecated.
Use
DBCollection.bulkInsert(List, InsertOption) instead. |
Object |
DBCollection.insert(String insertor)
Deprecated.
Use
DBCollection.insertRecord(BSONObject) instead. |
InsertResult |
DBCollection.insertRecord(BSONObject record)
Insert a document into current collection.
|
InsertResult |
DBCollection.insertRecord(BSONObject record,
InsertOption option)
Insert a document into current collection.
|
BSONObject |
DBCollection.insertRecords(List<BSONObject> insertor,
int flags)
Deprecated.
Use
DBCollection.bulkInsert(List, InsertOption) instead. |
void |
Sequoiadb.interrupt()
Send an interrupt message to engine.
|
void |
Sequoiadb.interruptOperation()
Send "INTERRUPT_SELF" message to engine to stop the current operation.
|
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.isDataSourceExist(String dataSourceName)
Whether the data source exists or not.
|
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.listDataSources(BSONObject matcher,
BSONObject selector,
BSONObject orderBy,
BSONObject hint)
List data source.
|
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 |
DBCollection.listLobs(BSONObject matcher,
BSONObject selector,
BSONObject orderBy,
BSONObject hint,
long skipRows,
long returnRows)
Get 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)
Deprecated.
|
DBCursor |
DBCollection.query(String matcher,
String selector,
String orderBy,
String hint,
long skipRows,
long returnRows)
Deprecated.
|
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 |
CollectionSpace.setAttributes(BSONObject options)
Alter the current collection space 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 |
Domain.setAttributes(BSONObject options)
Alter current domain 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().
|
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 |
Node.start()
Start current node.
|
void |
ReplicaGroup.start()
Start current replica group.
|
void |
Node.stop()
Stop current node.
|
void |
ReplicaGroup.stop()
Stop current replica group.
|
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)
Deprecated.
Use
DBCollection.updateRecords(BSONObject, BSONObject) instead. |
void |
DBCollection.update(BSONObject matcher,
BSONObject modifier,
BSONObject hint,
int flag)
Deprecated.
|
void |
DBCollection.update(DBQuery query)
Deprecated.
|
void |
DBCollection.update(String matcher,
String modifier,
String hint)
Deprecated.
|
void |
DBCollection.update(String matcher,
String modifier,
String hint,
int flag)
Deprecated.
|
void |
Sequoiadb.updateConfig(BSONObject configs)
Force the node to update configs online.
|
void |
Sequoiadb.updateConfig(BSONObject configs,
BSONObject options)
Force the node to update configs online.
|
UpdateResult |
DBCollection.updateRecords(BSONObject matcher,
BSONObject modifier)
Update the matching records of current collection.
|
UpdateResult |
DBCollection.updateRecords(BSONObject matcher,
BSONObject modifier,
UpdateOption option)
Update the matching records of current collection.
|
void |
DBCollection.upsert(BSONObject matcher,
BSONObject modifier,
BSONObject hint)
Deprecated.
Use
DBCollection.upsertRecords(BSONObject, BSONObject) instead. |
void |
DBCollection.upsert(BSONObject matcher,
BSONObject modifier,
BSONObject hint,
BSONObject setOnInsert)
Deprecated.
|
void |
DBCollection.upsert(BSONObject matcher,
BSONObject modifier,
BSONObject hint,
BSONObject setOnInsert,
int flag)
Deprecated.
|
UpdateResult |
DBCollection.upsertRecords(BSONObject matcher,
BSONObject modifier)
Update the matching records of current collection, insert if no matching.
|
UpdateResult |
DBCollection.upsertRecords(BSONObject matcher,
BSONObject modifier,
UpsertOption option)
Update the matching records 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.
|
Constructor and Description |
---|
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)
Deprecated.
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)
Deprecated.
Use com.sequoiadb.base.ConfigOptions instead of com.sequoiadb.net.ConfigOptions.
|
Sequoiadb(String username,
String password)
Deprecated.
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)
Deprecated.
Use com.sequoiadb.base.ConfigOptions instead of com.sequoiadb.net.ConfigOptions.
|
SequoiadbDatasource(List<String> urls,
String username,
String password,
ConfigOptions nwOpt,
DatasourceOptions dsOpt)
Deprecated.
Use com.sequoiadb.datasource.SequoiadbDatasource instead.
|
SequoiadbDatasource(List<String> urls,
String username,
String password,
com.sequoiadb.net.ConfigOptions nwOpt,
DatasourceOptions dsOpt)
Deprecated.
|
SequoiadbDatasource(List<String> urls,
String username,
String password,
ConfigOptions nwOpt,
com.sequoiadb.base.SequoiadbOption dsOpt)
Deprecated.
Use com.sequoiadb.datasource.SequoiadbDatasource instead.
|
SequoiadbDatasource(List<String> urls,
String username,
String password,
com.sequoiadb.net.ConfigOptions nwOpt,
com.sequoiadb.base.SequoiadbOption dsOpt)
Deprecated.
|
SequoiadbDatasource(String url,
String username,
String password,
DatasourceOptions dsOpt)
Deprecated.
Use com.sequoiadb.datasource.SequoiadbDatasource instead.
|
Modifier and Type | Method and Description |
---|---|
void |
SequoiadbDatasource.addCoord(String url)
Add coord address.
|
void |
SequoiadbDatasource.close(Sequoiadb sdb)
Deprecated.
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.
|
Constructor and Description |
---|
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)
Deprecated.
Use com.sequoiadb.base.ConfigOptions instead of com.sequoiadb.net.ConfigOptions.
|
SequoiadbDatasource(String url,
String username,
String password,
DatasourceOptions dsOpt) |
Copyright © 2023. All rights reserved.