#include <Aerospike.hpp>
Public Member Functions |
| AerospikeDB () |
virtual | ~AerospikeDB () |
void | setDriverUrl (const std::string &dbUrl) |
| set the driver URL
|
void | put (const std::string &, const std::string &) |
| put document with given ID to Search Engine
|
std::string | get (const std::string &) |
| get document with given ID from Search Engine
|
virtual std::vector< std::string > | get_all () |
| get all documents with given ID from Search Engine
|
void | del (const std::string &) |
| delete document with given ID from Search Engine
|
int | getLastError () const |
| get status last performed operation. Must be called after method to get operation's status
|
| BaseDB () |
virtual | ~BaseDB () |
virtual void | setDatabaseName (const std::string &dbName) |
| set the database name
|
Detailed Description
Definition at line 28 of file Aerospike.hpp.
Constructor & Destructor Documentation
HCE::AerospikeDB::AerospikeDB |
( |
| ) |
|
virtual HCE::AerospikeDB::~AerospikeDB |
( |
| ) |
|
|
virtual |
Member Function Documentation
void HCE::AerospikeDB::del |
( |
const std::string & |
key | ) |
|
|
virtual |
delete document with given ID from Search Engine
A pure virtual member.
- Parameters
-
key | the document's ID method must set _error to operation's result state: ACTION_SUCCESS - operation was completed successfully ACTION_GENERAL_FAILURE - operation was failed |
- Returns
- document's content
Implements HCE::BaseDB.
std::string HCE::AerospikeDB::get |
( |
const std::string & |
key | ) |
|
|
virtual |
get document with given ID from Search Engine
A pure virtual member.
- Parameters
-
key | the document's ID method must set _error to operation's result state: DOCUMENT_PRESENT - operation was completed successfully (document was present) DOCUMENT_NOT_PRESENT - operation was failed (document wasn't present) |
- Returns
- document's content
Implements HCE::BaseDB.
virtual std::vector<std::string> HCE::AerospikeDB::get_all |
( |
| ) |
|
|
virtual |
get all documents with given ID from Search Engine
A pure virtual member.
- Parameters
-
key | the document's ID method must set _error to operation's result state: DOCUMENT_PRESENT - operation was completed successfully (document was present) DOCUMENT_NOT_PRESENT - operation was failed (document wasn't present) |
- Returns
- document's content
Implements HCE::BaseDB.
int HCE::AerospikeDB::getLastError |
( |
| ) |
const |
|
inlinevirtual |
get status last performed operation. Must be called after method to get operation's status
A pure virtual member.
- Returns
- operation's status
Implements HCE::BaseDB.
Definition at line 38 of file Aerospike.hpp.
void HCE::AerospikeDB::put |
( |
const std::string & |
key, |
|
|
const std::string & |
value |
|
) |
| |
|
virtual |
put document with given ID to Search Engine
A pure virtual member.
- Parameters
-
key | the document's ID |
value | the document itself method must set _error to operation's result state: ACTION_SUCCESS - operation was completed successfully ACTION_GENERAL_FAILURE - operation was failed |
Implements HCE::BaseDB.
void HCE::AerospikeDB::setDriverUrl |
( |
const std::string & |
dbUrl | ) |
|
|
virtual |
set the driver URL
- Parameters
-
Reimplemented from HCE::BaseDB.
The documentation for this class was generated from the following file: