Part of sasync.parray View In Hierarchy
I am a three-dimensional array of Python objects, addressable by any
three-way combination of hashable Python objects. You can use me as a
two-dimensional array by simply using some constant, e.g.,
None when supplying an address for my third dimension.
shutdown
method for an instance of me that you're done with before allowing that
instance to be deleted.
| Method | __init__ | Constructor, with a URL and any engine-specifying keywords supplied if |
| Method | shutdown | Shuts down my database Transactor and its
synchronous task queue.
|
| Method | write | Performs a database write transaction, returning a deferred to its |
| Method | get | Retrieves an element (x,y,z) from the database. |
| Method | set | Persists the supplied value of element (x,y,z) to the database, |
| Method | delete | Deletes the database row for element (x,y,z). |
| Method | clear | Deletes the entire group of database rows for all of my elements |
| Unknown Field: keyword | search | Set True if text indexing is to be performed on items as
they are written.
|
Performs a database write transaction, returning a deferred to its completion.
If we are updating the search index, there's a nuance to the deferred processing. In that case, when the write is done, the deferred is fired and processing separately proceeds with indexing of the written value. Here's how it works:writeDone
function as the callback to its deferred d2. Note that the
defer-to-queue transaction keeps a reference to the deferred object it
instantiates, so we don't have to do so for either d2 or
d3. Those references are merely defined in the method for code
readability.