SequoiaDB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
sdbclient::_sdbCollection Class Referenceabstract

Public Member Functions

virtual INT32 getCount (SINT64 &count, const bson::BSONObj &condition=_sdbStaticObject)=0
 
virtual INT32 insert (const bson::BSONObj &obj, bson::OID *id=NULL)=0
 
virtual INT32 bulkInsert (SINT32 flags, std::vector< bson::BSONObj > &obj)=0
 
virtual INT32 update (const bson::BSONObj &rule, const bson::BSONObj &condition=_sdbStaticObject, const bson::BSONObj &hint=_sdbStaticObject)=0
 
virtual INT32 upsert (const bson::BSONObj &rule, const bson::BSONObj &condition=_sdbStaticObject, const bson::BSONObj &hint=_sdbStaticObject, const bson::BSONObj &setOnInsert=_sdbStaticObject)=0
 
virtual INT32 del (const bson::BSONObj &condition=_sdbStaticObject, const bson::BSONObj &hint=_sdbStaticObject)=0
 
virtual INT32 query (_sdbCursor **cursor, const bson::BSONObj &condition=_sdbStaticObject, const bson::BSONObj &selected=_sdbStaticObject, const bson::BSONObj &orderBy=_sdbStaticObject, const bson::BSONObj &hint=_sdbStaticObject, INT64 numToSkip=0, INT64 numToReturn=-1, INT32 flag=0)=0
 
virtual INT32 query (sdbCursor &cursor, const bson::BSONObj &condition=_sdbStaticObject, const bson::BSONObj &selected=_sdbStaticObject, const bson::BSONObj &orderBy=_sdbStaticObject, const bson::BSONObj &hint=_sdbStaticObject, INT64 numToSkip=0, INT64 numToReturn=-1, INT32 flag=0)=0
 
virtual INT32 queryOne (bson::BSONObj &obj, const bson::BSONObj &condition=_sdbStaticObject, const bson::BSONObj &selected=_sdbStaticObject, const bson::BSONObj &orderBy=_sdbStaticObject, const bson::BSONObj &hint=_sdbStaticObject, INT64 numToSkip=0, INT32 flag=0)=0
 
virtual INT32 queryAndUpdate (_sdbCursor **cursor, const bson::BSONObj &update, const bson::BSONObj &condition=_sdbStaticObject, const bson::BSONObj &selected=_sdbStaticObject, const bson::BSONObj &orderBy=_sdbStaticObject, const bson::BSONObj &hint=_sdbStaticObject, INT64 numToSkip=0, INT64 numToReturn=-1, INT32 flag=0, BOOLEAN returnNew=FALSE)=0
 
virtual INT32 queryAndRemove (_sdbCursor **cursor, const bson::BSONObj &condition=_sdbStaticObject, const bson::BSONObj &selected=_sdbStaticObject, const bson::BSONObj &orderBy=_sdbStaticObject, const bson::BSONObj &hint=_sdbStaticObject, INT64 numToSkip=0, INT64 numToReturn=-1, INT32 flag=0)=0
 
virtual INT32 createIndex (const bson::BSONObj &indexDef, const CHAR *pName, BOOLEAN isUnique, BOOLEAN isEnforced)=0
 
virtual INT32 createIndex (const bson::BSONObj &indexDef, const CHAR *pName, BOOLEAN isUnique, BOOLEAN isEnforced, INT32 sortBufferSize)=0
 
virtual INT32 getIndexes (_sdbCursor **cursor, const CHAR *pName)=0
 
virtual INT32 getIndexes (sdbCursor &cursor, const CHAR *pName)=0
 
virtual INT32 dropIndex (const CHAR *pName)=0
 
virtual INT32 create ()=0
 
virtual INT32 drop ()=0
 
virtual const CHAR * getCollectionName ()=0
 
virtual const CHAR * getCSName ()=0
 
virtual const CHAR * getFullName ()=0
 
virtual INT32 split (const CHAR *pSourceGroupName, const CHAR *pTargetGroupName, const bson::BSONObj &splitConditon, const bson::BSONObj &splitEndCondition=_sdbStaticObject)=0
 
virtual INT32 split (const CHAR *pSourceGroupName, const CHAR *pTargetGroupName, FLOAT64 percent)=0
 
virtual INT32 splitAsync (SINT64 &taskID, const CHAR *pSourceGroupName, const CHAR *pTargetGroupName, const bson::BSONObj &splitCondition, const bson::BSONObj &splitEndCondition=_sdbStaticObject)=0
 
virtual INT32 splitAsync (const CHAR *pSourceGroupName, const CHAR *pTargetGroupName, FLOAT64 percent, SINT64 &taskID)=0
 
virtual INT32 aggregate (_sdbCursor **cursor, std::vector< bson::BSONObj > &obj)=0
 
virtual INT32 aggregate (sdbCursor &cursor, std::vector< bson::BSONObj > &obj)=0
 
virtual INT32 getQueryMeta (_sdbCursor **cursor, const bson::BSONObj &condition=_sdbStaticObject, const bson::BSONObj &orderBy=_sdbStaticObject, const bson::BSONObj &hint=_sdbStaticObject, INT64 numToSkip=0, INT64 numToReturn=-1)=0
 
virtual INT32 getQueryMeta (sdbCursor &cursor, const bson::BSONObj &condition=_sdbStaticObject, const bson::BSONObj &orderBy=_sdbStaticObject, const bson::BSONObj &hint=_sdbStaticObject, INT64 numToSkip=0, INT64 numToReturn=-1)=0
 
virtual INT32 attachCollection (const CHAR *subClFullName, const bson::BSONObj &options)=0
 
virtual INT32 detachCollection (const CHAR *subClFullName)=0
 
virtual INT32 alterCollection (const bson::BSONObj &options)=0
 
virtual INT32 explain (sdbCursor &cursor, const bson::BSONObj &condition=_sdbStaticObject, const bson::BSONObj &select=_sdbStaticObject, const bson::BSONObj &orderBy=_sdbStaticObject, const bson::BSONObj &hint=_sdbStaticObject, INT64 numToSkip=0, INT64 numToReturn=-1, INT32 flag=0, const bson::BSONObj &options=_sdbStaticObject)=0
 explain
 
virtual INT32 createLob (sdbLob &lob, const bson::OID *oid=NULL)=0
 lob
 
virtual INT32 removeLob (const bson::OID &oid)=0
 
virtual INT32 openLob (sdbLob &lob, const bson::OID &oid)=0
 
virtual INT32 listLobs (sdbCursor &cursor)=0
 
virtual INT32 truncate ()=0
 truncate
 
virtual INT32 createIdIndex (const bson::BSONObj &options=_sdbStaticObject)=0
 create/drop $id index
 
virtual INT32 dropIdIndex ()=0
 

The documentation for this class was generated from the following file: