Package | Description |
---|---|
com.sequoiadb.base |
SequoiaDB Basic API
|
com.sequoiadb.base.options | |
com.sequoiadb.base.result | |
com.sequoiadb.exception |
SequoiaDB Error
|
org.bson |
Contains the base BSON classes and Encoder/Decoder.
|
org.bson.types |
Contains classes implementing various BSON types.
|
Modifier and Type | Method and Description |
---|---|
BSONObject |
DBSequence.fetch(int fetchNum)
Fetch a bulk of continuous values.
|
BSONObject |
DBCursor.getCurrent()
Get current document.
|
BSONObject |
ReplicaGroup.getDetail()
Get detail info of current replicaGroup
|
BSONObject |
Sequoiadb.SptEvalResult.getErrMsg()
Get error type.
|
BSONObject |
DBQuery.getHint() |
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.
|
BSONObject |
DBQuery.getMatcher() |
BSONObject |
DBQuery.getModifier() |
BSONObject |
DBCursor.getNext()
Get next document.
|
BSONObject |
DBQuery.getOrderBy() |
BSONObject |
DBLob.getRunTimeDetail()
Get the run time detail information of lob.
|
BSONObject |
DBQuery.getSelector() |
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.
|
BSONObject |
DBCollection.insert(BSONObject insertor,
int flags)
Deprecated.
Use
DBCollection.insertRecord(BSONObject, InsertOption) instead. |
BSONObject |
DBCollection.insertRecords(List<BSONObject> insertor,
int flags)
Deprecated.
Use
DBCollection.bulkInsert(List, InsertOption) instead. |
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.
|
Modifier and Type | Method and Description |
---|---|
void |
Domain.addGroups(BSONObject options)
Alter current domain to add groups
|
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(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 |
DBCollection.createAutoIncrement(BSONObject options)
Create auto-increment for current collection.
|
DBCollection |
CollectionSpace.createCollection(String collectionName,
BSONObject options)
Create collection by options.
|
CollectionSpace |
Sequoiadb.createCollectionSpace(String csName,
BSONObject options)
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.
|
Node |
ReplicaGroup.createNode(String hostName,
int port,
String dbPath,
BSONObject configure)
Create node.
|
void |
Sequoiadb.createReplicaCataGroup(String hostName,
int port,
String dbPath,
BSONObject options)
Create the replica Catalog group with the given options.
|
DBSequence |
Sequoiadb.createSequence(String seqName,
BSONObject options)
Create a sequence with the specified options.
|
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 |
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 |
ReplicaGroup.detachNode(String hostName,
int port,
BSONObject options)
Detach node.
|
void |
Sequoiadb.dropCollectionSpace(String csName,
BSONObject options)
Remove the named collection space.
|
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
|
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.
|
void |
Sequoiadb.forceSession(long sessionID,
BSONObject option)
Stop the specified session's current operation and terminate it.
|
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.
|
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.
|
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.
|
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.
|
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. |
InsertResult |
DBCollection.insertRecord(BSONObject record)
Insert a document into current collection.
|
InsertResult |
DBCollection.insertRecord(BSONObject record,
InsertOption option)
Insert a document into current collection.
|
void |
Sequoiadb.invalidateCache(BSONObject options)
Clear the cache of the nodes (data/coord node).
|
DBCursor |
Sequoiadb.listBackup(BSONObject options,
BSONObject matcher,
BSONObject selector,
BSONObject orderBy)
List the backups.
|
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(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.listTasks(BSONObject matcher,
BSONObject selector,
BSONObject orderBy,
BSONObject hint)
List the tasks.
|
void |
Sequoiadb.loadCollectionSpace(String csName,
BSONObject options) |
void |
DBCollection.pop(BSONObject options)
Pop records from the 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.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(BSONObject matcher,
BSONObject selector,
BSONObject orderBy,
BSONObject hint,
int flag)
Get one matched document from current collection.
|
void |
ReplicaGroup.reelect(BSONObject option)
Force the replica group to reelect primary node.
|
void |
Sequoiadb.removeBackup(BSONObject options)
Remove the backups.
|
void |
Domain.removeGroups(BSONObject options)
Alter current domain to remove groups
|
void |
ReplicaGroup.removeNode(String hostName,
int port,
BSONObject configure)
Remove node.
|
void |
Sequoiadb.resetSnapshot(BSONObject options)
Reset the snapshot.
|
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 |
DBSequence.setAttributes(BSONObject options)
Alter the sequence with the specified options.
|
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 |
Sequoiadb.SptEvalResult.setErrMsg(BSONObject errmsg)
Set error type.
|
void |
Domain.setGroups(BSONObject options)
Alter current domain to set groups
|
void |
DBQuery.setHint(BSONObject hint)
Set specified access plan.
|
void |
DBQuery.setMatcher(BSONObject matcher)
Set matching rule.
|
void |
DBQuery.setModifier(BSONObject modifier)
Set modified rule.
|
void |
DBQuery.setOrderBy(BSONObject orderBy)
Set ordered rule.
|
void |
DBQuery.setSelector(BSONObject selector)
Set selective rule.
|
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.
|
long |
DBCollection.splitAsync(String sourceGroupName,
String destGroupName,
BSONObject splitCondition,
BSONObject splitEndCondition)
Split the specified collection from source group to target group by range asynchronously.
|
void |
Sequoiadb.sync(BSONObject options)
Sync the database to disk.
|
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 |
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.
|
Modifier and Type | Method and Description |
---|---|
DBCursor |
DBCollection.aggregate(List<BSONObject> objs)
Execute aggregate operation in current collection.
|
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 |
DBCollection.createAutoIncrement(List<BSONObject> options)
Create one or more auto-increment for current collection.
|
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. |
BSONObject |
DBCollection.insertRecords(List<BSONObject> insertor,
int flags)
Deprecated.
Use
DBCollection.bulkInsert(List, InsertOption) instead. |
Modifier and Type | Method and Description |
---|---|
BSONObject |
DeleteOption.getHint()
Gets the hint option.
|
BSONObject |
UpdateOption.getHint()
Gets the hint option.
|
BSONObject |
UpsertOption.getSetOnInsert()
Gets the setOnInsert option.
|
Modifier and Type | Method and Description |
---|---|
DeleteOption |
DeleteOption.setHint(BSONObject hint)
Sets the hint option, default is null.
|
UpdateOption |
UpdateOption.setHint(BSONObject hint)
Sets the hint option, default is null.
|
void |
UpsertOption.setSetOnInsert(BSONObject setOnInsert)
Sets the setOnInsert option, default is null.
|
Constructor and Description |
---|
DeleteResult(BSONObject obj) |
InsertResult(BSONObject obj) |
UpdateResult(BSONObject obj) |
Modifier and Type | Method and Description |
---|---|
BSONObject |
BaseException.getErrorObject()
Get the error object.
|
Constructor and Description |
---|
BaseException(int errCode,
String detail,
BSONObject errorObject) |
Modifier and Type | Class and Description |
---|---|
class |
BasicBSONObject
A simple implementation of
BSONObject . |
Modifier and Type | Method and Description |
---|---|
BSONObject |
BasicBSONCallback.create() |
BSONObject |
BasicBSONCallback.create(boolean array,
List<String> path) |
protected BSONObject |
BasicBSONCallback.createList() |
protected BSONObject |
BasicBSONCallback.cur() |
static BSONObject |
BSON.decode(byte[] b)
Decode the bytes into a BSONObject instance.
|
static BSONObject |
BSON.decode(byte[] b,
int offset)
Decode the bytes into a BSONObject instance.
|
BSONObject |
BasicBSONDecoder.readObject(byte[] b) |
BSONObject |
BSONDecoder.readObject(byte[] b) |
BSONObject |
NewBSONDecoder.readObject(byte[] pData) |
BSONObject |
BasicBSONDecoder.readObject(byte[] b,
int offset) |
BSONObject |
BSONDecoder.readObject(byte[] b,
int offset) |
BSONObject |
NewBSONDecoder.readObject(byte[] b,
int offset) |
BSONObject |
BasicBSONDecoder.readObject(InputStream in) |
BSONObject |
BSONDecoder.readObject(InputStream in) |
BSONObject |
NewBSONDecoder.readObject(InputStream pIn) |
static BSONObject |
BasicBSONObject.typeToBson(Object object) |
static BSONObject |
BasicBSONObject.typeToBson(Object object,
Boolean ignoreNullValue) |
Modifier and Type | Method and Description |
---|---|
byte[] |
BasicBSONEncoder.encode(BSONObject o) |
static byte[] |
BSON.encode(BSONObject o)
Encoding a BSONObject instance into bytes
|
byte[] |
BSONEncoder.encode(BSONObject o) |
byte[] |
BasicBSONEncoder.encode(BSONObject o,
BSONObject extendObj) |
static byte[] |
BSON.encode(BSONObject o,
BSONObject extendObj) |
byte[] |
BSONEncoder.encode(BSONObject o,
BSONObject extendObj) |
protected boolean |
BasicBSONEncoder.handleSpecialObjects(String name,
BSONObject o) |
void |
BasicBSONObject.putAll(BSONObject o)
Sets all key/value pairs from an object into this object
|
void |
BSONObject.putAll(BSONObject o)
Sets all key/value pairs from an object into this object
|
void |
BasicBSONObject.putAllUnique(BSONObject o)
Sets all key/value pairs from an object into this object if the keys don't exist.
|
void |
BSONObject.putAllUnique(BSONObject o)
Sets all key/value pairs from an object into this object if the keys don't exist.
|
int |
BasicBSONEncoder.putObject(BSONObject o)
Encodes a
BSONObject . |
int |
BSONEncoder.putObject(BSONObject o) |
int |
BasicBSONEncoder.putObject(BSONObject o,
BSONObject extendObj) |
int |
BSONEncoder.putObject(BSONObject o,
BSONObject extendObj) |
protected int |
BasicBSONEncoder.putObject(String name,
BSONObject o,
BSONObject extendObj)
this is really for embedded objects
|
Modifier and Type | Class and Description |
---|---|
class |
BasicBSONList
Utility class to allow array
BSONObject s to be created. |
Modifier and Type | Method and Description |
---|---|
BSONObject |
CodeWScope.getScope() |
Modifier and Type | Method and Description |
---|---|
void |
BasicBSONList.putAll(BSONObject o)
Sets all key/value pairs from an object into this object
|
void |
BasicBSONList.putAllUnique(BSONObject o)
Sets all key/value pairs from an object into this object if the keys don't exist.
|
Constructor and Description |
---|
CodeWScope(String code,
BSONObject scope) |
Copyright © 2023. All rights reserved.