程序包 | 说明 |
---|---|
com.sequoiadb.base |
SequoiaDB Basic API
|
com.sequoiadb.exception |
SequoiaDB Error
|
org.bson |
Contains the base BSON classes and Encoder/Decoder.
|
org.bson.types |
Contains classes implementing various BSON types.
|
限定符和类型 | 方法和说明 |
---|---|
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 |
DBQuery.getMatcher() |
BSONObject |
DBQuery.getModifier() |
BSONObject |
DBCursor.getNext()
Get next document.
|
BSONObject |
DBQuery.getOrderBy() |
BSONObject |
DBQuery.getSelector() |
BSONObject |
Sequoiadb.getSessionAttr()
Get the attributes of the current session.
|
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.
|
限定符和类型 | 方法和说明 |
---|---|
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 |
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 configure)
Attach node.
|
void |
Sequoiadb.backupOffline(BSONObject options)
Backup the whole database or specified replica group.
|
DBCollection |
CollectionSpace.createCollection(String collectionName,
BSONObject options)
Create collection by options.
|
CollectionSpace |
Sequoiadb.createCollectionSpace(String csName,
BSONObject options)
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.
|
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.
|
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 |
Sequoiadb.deleteConfig(BSONObject configs,
BSONObject options)
Force the node to delete configs online.
|
void |
ReplicaGroup.detachNode(String hostName,
int port,
BSONObject configure)
Detach node.
|
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.
|
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 |
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)
Insert a document into current collection, if the document
does not contain field "_id", it will be added.
|
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.listDomains(BSONObject matcher,
BSONObject selector,
BSONObject orderBy,
BSONObject hint)
List domains.
|
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 |
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 |
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 |
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)
Update the BSONObject of current collection.
|
void |
DBCollection.update(BSONObject matcher,
BSONObject modifier,
BSONObject 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.
|
限定符和类型 | 方法和说明 |
---|---|
DBCursor |
DBCollection.aggregate(List<BSONObject> objs)
Execute aggregate operation in current collection.
|
void |
DBCollection.bulkInsert(List<BSONObject> insertor,
int flag)
已过时。
use insert(List
|
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.
|
限定符和类型 | 方法和说明 |
---|---|
BSONObject |
BaseException.getErrorObject()
Get the error object.
|
构造器和说明 |
---|
BaseException(int errCode,
String detail,
BSONObject errorObject) |
限定符和类型 | 类和说明 |
---|---|
class |
BasicBSONObject
A simple implementation of
BSONObject . |
限定符和类型 | 方法和说明 |
---|---|
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 |
NewBSONDecoder.readObject(byte[] pData) |
BSONObject |
BSONDecoder.readObject(byte[] b) |
BSONObject |
BasicBSONDecoder.readObject(byte[] b) |
BSONObject |
NewBSONDecoder.readObject(byte[] b,
int offset) |
BSONObject |
BSONDecoder.readObject(byte[] b,
int offset) |
BSONObject |
BasicBSONDecoder.readObject(byte[] b,
int offset) |
BSONObject |
NewBSONDecoder.readObject(InputStream pIn) |
BSONObject |
BSONDecoder.readObject(InputStream in) |
BSONObject |
BasicBSONDecoder.readObject(InputStream in) |
static BSONObject |
BasicBSONObject.typeToBson(Object object) |
static BSONObject |
BasicBSONObject.typeToBson(Object object,
Boolean ignoreNullValue) |
限定符和类型 | 方法和说明 |
---|---|
byte[] |
BSONEncoder.encode(BSONObject o) |
static byte[] |
BSON.encode(BSONObject o)
Encoding a BSONObject instance into bytes
|
byte[] |
BasicBSONEncoder.encode(BSONObject o) |
protected boolean |
BasicBSONEncoder.handleSpecialObjects(String name,
BSONObject o) |
void |
BSONObject.putAll(BSONObject o)
Sets all key/value pairs from an object into this object
|
void |
BasicBSONObject.putAll(BSONObject o)
Sets all key/value pairs from an object into this object
|
int |
BSONEncoder.putObject(BSONObject o) |
int |
BasicBSONEncoder.putObject(BSONObject o)
Encodes a
BSONObject . |
protected int |
BasicBSONEncoder.putObject(String name,
BSONObject o)
this is really for embedded objects
|
限定符和类型 | 类和说明 |
---|---|
class |
BasicBSONList
Utility class to allow array
BSONObject s to be created. |
限定符和类型 | 方法和说明 |
---|---|
BSONObject |
CodeWScope.getScope() |
限定符和类型 | 方法和说明 |
---|---|
void |
BasicBSONList.putAll(BSONObject o)
Sets all key/value pairs from an object into this object
|
构造器和说明 |
---|
CodeWScope(String code,
BSONObject scope) |
Copyright © 2018. All rights reserved.