warehouse::client::ClientCollectionHandler Class Reference
List of all members.
Detailed Description
A handler for client connections to a collection in the warehouse.
Definition at line 36 of file client.py.
Member Function Documentation
def warehouse::client::ClientCollectionHandler::__init__ |
( |
|
self, |
|
|
|
db_name, |
|
|
|
collection_name, |
|
|
|
msg, |
|
|
|
indexed_fields | |
|
) |
| | |
def warehouse::client::ClientCollectionHandler::_handle_notify |
( |
|
self, |
|
|
|
msg | |
|
) |
| | [private] |
Handles data insertion notifications.
Definition at line 173 of file client.py.
def warehouse::client::ClientCollectionHandler::_handle_pull |
( |
|
self, |
|
|
|
msg, |
|
|
|
result | |
|
) |
| | [private] |
Handle a pull from a query. This funciton is only used internally
Definition at line 185 of file client.py.
def warehouse::client::ClientCollectionHandler::close |
( |
|
self |
) |
|
def warehouse::client::ClientCollectionHandler::push_data |
( |
|
self, |
|
|
|
msg | |
|
) |
| | |
Push data into a collection
@param msg : The new data to insert into the database
Definition at line 117 of file client.py.
def warehouse::client::ClientCollectionHandler::query |
( |
|
self, |
|
|
|
conditions | |
|
) |
| | |
Query a collection for data
@param conditions : Conditions for the query
@return a list of matching entries
Definition at line 140 of file client.py.
def warehouse::client::ClientCollectionHandler::subscribe_to_insertion |
( |
|
self, |
|
|
|
cb | |
|
) |
| | |
Register a function callback that is triggered whenever new data is inserted into the collection
@param cb: The callback
Definition at line 132 of file client.py.
Member Data Documentation
The documentation for this class was generated from the following file: