SNAP Library 6.0, Developer Reference
2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
Execution context. More...
#include <table.h>
Public Member Functions | |
TTableContext () | |
Default constructor. More... | |
TTableContext (TSIn &SIn) | |
Loads TTableContext in binary from SIn . More... | |
void | Load (TSIn &SIn) |
Loads TTableContext in binary from SIn . More... | |
void | LoadShM (TShMIn &ShMIn) |
Loads TTableContext using shared memory, the object is read only. More... | |
void | Save (TSOut &SOut) |
Saves TTableContext in binary to SOut . More... | |
TInt | AddStr (const TStr &Key) |
Adds string Key to the context, returns its KeyId. More... | |
TStr | GetStr (const TInt &KeyId) const |
Returns a string with KeyId . More... | |
Protected Attributes | |
TStrHash< TInt, TBigStrPool > | StringVals |
StringPool - stores string data values and maps them to integers. More... | |
Friends | |
class | TTable |
|
inline |
|
inline |
Loads TTableContext in binary from SIn
.
Definition at line 189 of file table.h.
Adds string Key
to the context, returns its KeyId.
Definition at line 199 of file table.h.
References TStrHash< TDat, TStringPool, THashFunc >::AddKey().
Returns a string with KeyId
.
Definition at line 204 of file table.h.
References TStrHash< TDat, TStringPool, THashFunc >::GetKey().
|
inline |
Loads TTableContext in binary from SIn
.
Definition at line 191 of file table.h.
References TStrHash< TDat, TStringPool, THashFunc >::Load().
|
inline |
Loads TTableContext using shared memory, the object is read only.
Definition at line 193 of file table.h.
References TStrHash< TDat, TStringPool, THashFunc >::LoadShM().
|
inline |
Saves TTableContext in binary to SOut
.
Definition at line 197 of file table.h.
References TStrHash< TDat, TStringPool, THashFunc >::Save().
|
protected |
StringPool - stores string data values and maps them to integers.
Definition at line 182 of file table.h.
Referenced by TTable::AddStrVal(), TTable::BuildGraph(), TTable::ChangeContext(), TTable::ColConcat(), TTable::ColConcatConst(), TTable::GetContextKey(), TTable::GetContextMemUsedKB(), TTable::GetStr(), TTable::GetStrValIdx(), TTable::PrintContextSize(), and TTable::StoreStrCol().