30 std::ostream &
operator<<(std::ostream &out,
const CellAsArray &cell) {
31 size_t len = cell.size();
36 out <<
" row='"<< cell[0] <<
"'";
39 out <<
" cf='"<< cell[1] <<
"'";
42 out <<
" cq='"<< cell[2] <<
"'";
45 out <<
" value='"<< cell[3] <<
"'";
48 out <<
" timestamp="<< cell[4];
51 out <<
" revision="<< cell[5];
54 out <<
" flag="<< cell[6];
63 make_cell(
const char *row,
const char *cf,
const char *cq,
64 const std::string &value, int64_t ts, int64_t rev,
74 = cell.key.__isset.
revision = cell.key.__isset.
flag =
true;
82 cell.__isset.
value =
true;
88 make_cell(
const char *row,
const char *cf,
const char *cq,
89 const std::string &value,
const char *ts,
const char *rev,
96 return make_cell(row, cf, cq, value, AUTO_ASSIGN, revn, flag);
const int64_t AUTO_ASSIGN
const char * column_qualifier
Compatibility Macros for C/C++.
std::ostream & operator<<(std::ostream &out, const CellAsArray &cell)
Cell make_cell(const char *row, const char *cf, const char *cq, const std::string &value, int64_t ts, int64_t rev, KeyFlag::type flag)
int64_t parse_ts(const char *ts)
Inline function which parses a string with a timestamp in localtime and returns a 64bit nanosecond ti...
An inline helper function to parse timestamps in YYYY-mm-dd[ HH:MM[:SS[.SS|:NS]]] format...
const char * column_family
Encapsulates decomposed key and value.