OpenCog Framework
Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
|
#include <AtomspaceHTabler.h>
Public Member Functions | |
AtomspaceHTabler (void) | |
virtual | ~AtomspaceHTabler () |
void | clearData () |
virtual Link * | getLink (Type, const std::vector< Handle > &) const |
virtual Node * | getNode (Type, const char *) const |
virtual void | storeAtom (Handle) |
virtual std::vector< Handle > | getIncomingSet (Handle) const |
virtual Atom * | getAtom (Handle) const |
![]() | |
virtual | ~BackingStore () |
virtual LinkPtr | getLink (Type, const HandleSeq &) const =0 |
virtual void | loadType (AtomTable &, Type)=0 |
virtual void | barrier ()=0 |
virtual bool | ignoreType (Type t) const |
virtual bool | ignoreAtom (Handle) const |
Private Member Functions | |
KeySpec | make_key (Handle) |
KeySpec | make_key (Type, const std::vector< Handle > &) |
KeySpec | make_key (Type, const char *) |
void | initTables () |
Private Attributes | |
ClientPtr | c |
TablePtr | m_handle_table |
TableMutatorPtr | m_handle_mutator |
TablePtr | m_name_table |
TableMutatorPtr | m_name_mutator |
TablePtr | m_outset_table |
TableMutatorPtr | m_outset_mutator |
Additional Inherited Members | |
![]() | |
std::set< Type > | _ignored_types |
Persistent Atom storage, backed by Hypertable.
Definition at line 42 of file AtomspaceHTabler.h.
AtomspaceHTabler::AtomspaceHTabler | ( | void | ) |
Initializes the object, connects to Hypertable.
NetworkException | if the connection times out, usually indicating that the Hypertable servers are not running. |
Definition at line 114 of file AtomspaceHTabler.cc.
|
inlinevirtual |
Definition at line 66 of file AtomspaceHTabler.h.
void AtomspaceHTabler::clearData | ( | void | ) |
Erases everything stored in the Hypertable.
Definition at line 144 of file AtomspaceHTabler.cc.
Return a pointer to an Atom associated with the given handle, if it exists; else return NULL.
Implements opencog::BackingStore.
Definition at line 403 of file AtomspaceHTabler.cc.
References av, BUFF_SIZE, opencog::classserver(), opencog::ClassServer::isNode(), opencog::Atom::setAttentionValue(), opencog::Atom::setTruthValue(), and opencog::Handle::value().
Return a vector containing the handles of the entire incoming set of the indicated handle.
Implements opencog::BackingStore.
Definition at line 372 of file AtomspaceHTabler.cc.
References BUFF_SIZE, and opencog::Handle::value().
Return a pointer to a link of the indicated type and outset, if it exists; else return NULL.
This is a two-pass lookup: we get the handle from Outsettable and use it to index into the main Atomtable.
Definition at line 156 of file AtomspaceHTabler.cc.
References python.undocumented.blocksworld::t.
Return a pointer to a node of the indicated type and name, if it exists; else return NULL.
This is a two-pass lookup: we get the handle from Nametable and use it to index into the main Atomtable.
Implements opencog::BackingStore.
Definition at line 192 of file AtomspaceHTabler.cc.
|
private |
Definition at line 123 of file AtomspaceHTabler.cc.
References attribute_schema, and handle_schema.
|
private |
|
private |
|
virtual |
Recursively store the atom and anything in its outgoing set. If the atom is already in storage, this will update it's truth value, etc.
Implements opencog::BackingStore.
Definition at line 223 of file AtomspaceHTabler.cc.
References av, BUFF_SIZE, opencog::TruthValue::getCount(), opencog::AttentionValue::getLTI(), opencog::TruthValue::getMean(), opencog::AttentionValue::getSTI(), opencog::AttentionValue::getVLTI(), python.undocumented.blocksworld::t, tv, and opencog::Handle::value().
|
private |
Definition at line 45 of file AtomspaceHTabler.h.
|
private |
Definition at line 47 of file AtomspaceHTabler.h.
|
private |
Definition at line 46 of file AtomspaceHTabler.h.
|
private |
Definition at line 49 of file AtomspaceHTabler.h.
|
private |
Definition at line 48 of file AtomspaceHTabler.h.
|
private |
Definition at line 51 of file AtomspaceHTabler.h.
|
private |
Definition at line 50 of file AtomspaceHTabler.h.