hobbes
a language, embedded compiler, and runtime for efficient dynamic expression evaluation, data storage and analysis
|
Classes | |
struct | BatchSendSession |
struct | buffer |
struct | gzbuffer |
struct | RunMode |
struct | Session |
Typedefs | |
typedef std::function< void(hobbes::storage::Transaction &)> | ProcessTxnF |
Functions | |
void | read (gzbuffer *in, uint8_t *b, size_t n) |
void | read (gzbuffer *in, uint32_t *n) |
void | read (gzbuffer *in, uint64_t *n) |
void | read (gzbuffer *in, std::string *x) |
void | read (gzbuffer *in, std::vector< uint8_t > *x) |
void | read (gzbuffer *in, storage::statements *stmts) |
void | runRecvConnection (int c, std::string dir) |
void | runRecvServer (int socket, std::string dir) |
std::thread | pullRemoteDataT (const std::string &dir, const std::string &listenport) |
bool | pullRemoteData (const std::string &dir, const std::string &listenport) |
void | sendFileContents (int connection, int sfd) |
void | sendSegmentFiles (int connection, const std::string &localdir) |
void | sendInitMessage (int connection, const std::string &groupName, const std::string &localdir) |
void | runConnectedSegmentSendingProcess (int connection, const std::string &groupName, const std::string &localdir) |
void | runSegmentSendingProcess (std::string groupName, std::string hostport, std::string localdir) |
std::string | segmentFileName (uint32_t seg) |
void | write (BatchSendSession *s, const uint8_t *d, size_t sz) |
void | write (BatchSendSession *s, const std::string &x) |
void | write (BatchSendSession *s, const std::vector< uint8_t > &x) |
template<typename T > | |
void | write (BatchSendSession *s, T x) |
static void | initNetSession (BatchSendSession *s, const std::string &groupName, const std::string &dir, storage::PipeQOS qos, storage::CommitMethod cm, const storage::statements &stmts) |
void | pushLocalData (const storage::QueueConnection &qc, const std::string &groupName, const std::string &dir, size_t clevel, size_t batchsendsize, long batchsendtime, const std::string &sendto) |
void | compileBootCode (hobbes::cc &ctx) |
void | recordLocalData (const hobbes::storage::QueueConnection &qc, const std::string &dir) |
std::ostream & | operator<< (std::ostream &o, const std::set< std::string > &xs) |
std::ostream & | operator<< (std::ostream &o, const RunMode &m) |
size_t | sizeInBytes (const std::string &s) |
void | showUsage () |
RunMode | config (int argc, const char **argv) |
std::string | instantiateDir (const std::string &groupName, const std::string &dir) |
void | evalGroupHostConnection (const std::string &groupName, const RunMode &m, std::vector< std::thread > *ts, int c) |
void | runGroupHost (const std::string &groupName, const RunMode &m, std::vector< std::thread > *ts) |
void | run (const RunMode &m) |
void | ssend (int c, const uint8_t *d, size_t dsz) |
void | ssend (int c, const std::string &s) |
void | srecv (int c, uint8_t *d, size_t dsz) |
void | srecv (int c, std::vector< uint8_t > *d) |
void | srecv (int c, std::string *s) |
size_t | uptoPow2 (size_t x) |
void | srecv (int c, buffer *b) |
bool | hstoreCanRead (storage::Transaction &txn, size_t n) |
const uint8_t * | hstoreUnsafeRead (storage::Transaction &txn, size_t n) |
const uint8_t * | hstoreUnsafeReadFixedArray (storage::Transaction &txn, size_t bytes, size_t asIfLen) |
cc * | loggerCompiler () |
DEFINE_STRUCT (Stmt,(strref, name),(size_t, flags),(strref, display),(strref, file),(size_t, line)) | |
std::string | ensureDirExists (const std::string &dirPfx) |
std::string | freshTempFile (const std::string &dirPfx) |
ProcessTxnF | initStorageSession (Session *s, const std::string &dirPfx, storage::PipeQOS qos, storage::CommitMethod cm, const storage::statements &stmts) |
Variables | |
unsigned char | ___bootdata [] |
unsigned int | ___bootdata_len = 6973 |
typedef std::function<void(hobbes::storage::Transaction&)> hog::ProcessTxnF |
void hog::compileBootCode | ( | hobbes::cc & | ctx | ) |
RunMode hog::config | ( | int | argc, |
const char ** | argv | ||
) |
hog::DEFINE_STRUCT | ( | Stmt | , |
(strref, name) | , | ||
(size_t, flags) | , | ||
(strref, display) | , | ||
(strref, file) | , | ||
(size_t, line) | |||
) |
std::string hog::ensureDirExists | ( | const std::string & | dirPfx | ) |
void hog::evalGroupHostConnection | ( | const std::string & | groupName, |
const RunMode & | m, | ||
std::vector< std::thread > * | ts, | ||
int | c | ||
) |
std::string hog::freshTempFile | ( | const std::string & | dirPfx | ) |
bool hog::hstoreCanRead | ( | storage::Transaction & | txn, |
size_t | n | ||
) |
const uint8_t* hog::hstoreUnsafeRead | ( | storage::Transaction & | txn, |
size_t | n | ||
) |
const uint8_t* hog::hstoreUnsafeReadFixedArray | ( | storage::Transaction & | txn, |
size_t | bytes, | ||
size_t | asIfLen | ||
) |
|
static |
ProcessTxnF hog::initStorageSession | ( | Session * | s, |
const std::string & | dirPfx, | ||
storage::PipeQOS | qos, | ||
storage::CommitMethod | cm, | ||
const storage::statements & | stmts | ||
) |
std::string hog::instantiateDir | ( | const std::string & | groupName, |
const std::string & | dir | ||
) |
cc* hog::loggerCompiler | ( | ) |
std::ostream& hog::operator<< | ( | std::ostream & | o, |
const std::set< std::string > & | xs | ||
) |
std::ostream& hog::operator<< | ( | std::ostream & | o, |
const RunMode & | m | ||
) |
bool hog::pullRemoteData | ( | const std::string & | dir, |
const std::string & | listenport | ||
) |
std::thread hog::pullRemoteDataT | ( | const std::string & | dir, |
const std::string & | listenport | ||
) |
void hog::pushLocalData | ( | const storage::QueueConnection & | qc, |
const std::string & | groupName, | ||
const std::string & | dir, | ||
size_t | clevel, | ||
size_t | batchsendsize, | ||
long | batchsendtime, | ||
const std::string & | sendto | ||
) |
void hog::read | ( | gzbuffer * | in, |
uint8_t * | b, | ||
size_t | n | ||
) |
void hog::read | ( | gzbuffer * | in, |
uint32_t * | n | ||
) |
void hog::read | ( | gzbuffer * | in, |
uint64_t * | n | ||
) |
void hog::read | ( | gzbuffer * | in, |
std::string * | x | ||
) |
void hog::read | ( | gzbuffer * | in, |
std::vector< uint8_t > * | x | ||
) |
void hog::read | ( | gzbuffer * | in, |
storage::statements * | stmts | ||
) |
void hog::recordLocalData | ( | const hobbes::storage::QueueConnection & | qc, |
const std::string & | dir | ||
) |
void hog::run | ( | const RunMode & | m | ) |
void hog::runConnectedSegmentSendingProcess | ( | int | connection, |
const std::string & | groupName, | ||
const std::string & | localdir | ||
) |
void hog::runGroupHost | ( | const std::string & | groupName, |
const RunMode & | m, | ||
std::vector< std::thread > * | ts | ||
) |
void hog::runRecvConnection | ( | int | c, |
std::string | dir | ||
) |
void hog::runRecvServer | ( | int | socket, |
std::string | dir | ||
) |
void hog::runSegmentSendingProcess | ( | std::string | groupName, |
std::string | hostport, | ||
std::string | localdir | ||
) |
std::string hog::segmentFileName | ( | uint32_t | seg | ) |
void hog::sendFileContents | ( | int | connection, |
int | sfd | ||
) |
void hog::sendInitMessage | ( | int | connection, |
const std::string & | groupName, | ||
const std::string & | localdir | ||
) |
void hog::sendSegmentFiles | ( | int | connection, |
const std::string & | localdir | ||
) |
void hog::showUsage | ( | ) |
size_t hog::sizeInBytes | ( | const std::string & | s | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void hog::write | ( | BatchSendSession * | s, |
const uint8_t * | d, | ||
size_t | sz | ||
) |
void hog::write | ( | BatchSendSession * | s, |
const std::string & | x | ||
) |
void hog::write | ( | BatchSendSession * | s, |
const std::vector< uint8_t > & | x | ||
) |
void hog::write | ( | BatchSendSession * | s, |
T | x | ||
) |
unsigned char hog::___bootdata[] |
unsigned int hog::___bootdata_len = 6973 |