0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
TableSplit.cc
Go to the documentation of this file.
1 
22 #include "Common/Compat.h"
23 #include <cstring>
24 #include <iostream>
25 
26 #include "TableSplit.h"
27 
28 using namespace std;
29 using namespace Hypertable;
30 
31 
32 std::ostream &Hypertable::operator<<(std::ostream &os, const TableSplit &ts) {
33  os <<"{TableSplit: [";
34  if (ts.start_row)
35  os << "\"" << ts.start_row << "\"";
36  else
37  os << "NULL";
38  if (ts.end_row)
39  os << "\"" << ts.end_row << "\"";
40  else
41  os << "NULL";
42  if (ts.location)
43  os <<" (" << ts.location << ")";
44  else
45  os <<" (NULL)";
46  os << "}";
47  return os;
48 }
49 
Represents a table split.
Definition: TableSplit.h:34
STL namespace.
const char * location
Definition: TableSplit.h:47
Compatibility Macros for C/C++.
std::ostream & operator<<(std::ostream &os, const crontab_entry &entry)
Helper function to write crontab_entry to an ostream.
Definition: Crontab.cc:301
Hypertable definitions
const char * start_row
Definition: TableSplit.h:45
const char * end_row
Definition: TableSplit.h:46