15 #ifndef IMPALA_UTIL_DEBUG_UTIL_H
16 #define IMPALA_UTIL_DEBUG_UTIL_H
22 #include "gen-cpp/JniCatalog_types.h"
23 #include "gen-cpp/Descriptors_types.h"
24 #include "gen-cpp/Exprs_types.h"
25 #include "gen-cpp/Frontend_types.h"
26 #include "gen-cpp/PlanNodes_types.h"
27 #include "gen-cpp/RuntimeProfile_types.h"
28 #include "gen-cpp/ImpalaService_types.h"
29 #include "gen-cpp/parquet_types.h"
34 class TupleDescriptor;
39 std::ostream&
operator<<(std::ostream& os,
const TFunctionBinaryType::type& op);
40 std::ostream&
operator<<(std::ostream& os,
const TUniqueId&
id);
41 std::ostream&
operator<<(std::ostream& os,
const THdfsFileFormat::type& type);
42 std::ostream&
operator<<(std::ostream& os,
const THdfsCompression::type& type);
43 std::ostream&
operator<<(std::ostream& os,
const TStmtType::type& type);
44 std::ostream&
operator<<(std::ostream& os,
const TUnit::type& type);
45 std::ostream&
operator<<(std::ostream& os,
const TMetricKind::type& type);
46 std::ostream&
operator<<(std::ostream& os,
const beeswax::QueryState::type& type);
47 std::ostream&
operator<<(std::ostream& os,
const parquet::Encoding::type& type);
48 std::ostream&
operator<<(std::ostream& os,
const parquet::CompressionCodec::type& type);
49 std::ostream&
operator<<(std::ostream& os,
const parquet::Type::type& type);
51 std::string
PrintTuple(
const Tuple* t,
const TupleDescriptor& d);
52 std::string
PrintRow(TupleRow* row,
const RowDescriptor& d);
54 std::string
PrintId(
const TUniqueId&
id,
const std::string& separator =
":");
62 std::string
PrintEncoding(
const parquet::Encoding::type& type);
63 std::string
PrintAsHex(
const char* bytes, int64_t len);
65 std::string
PrintTUnit(
const TUnit::type& type);
71 bool ParseId(
const std::string& s, TUniqueId*
id);
string path("/usr/lib/sasl2:/usr/lib64/sasl2:/usr/local/lib/sasl2:/usr/lib/x86_64-linux-gnu/sasl2")
bool ParseId(const string &s, TUniqueId *id)
std::string PrintTUnit(const TUnit::type &type)
string GetVersionString(bool compact)
Returns "<program short name> version <GetBuildVersion(compact)>".
string PrintPath(const vector< int > &path)
std::string PrintQueryState(const beeswax::QueryState::type &type)
string GetBuildVersion(bool compact)
std::string PrintTCatalogOpType(const TCatalogOpType::type &type)
string PrintId(const TUniqueId &id, const string &separator)
std::string PrintTCatalogObjectType(const TCatalogObjectType::type &type)
std::string PrintTSessionType(const TSessionType::type &type)
std::string PrintTMetricKind(const TMetricKind::type &type)
std::string PrintTStmtType(const TStmtType::type &type)
string PrintBatch(RowBatch *batch)
std::string PrintTDdlType(const TDdlType::type &type)
std::string PrintEncoding(const parquet::Encoding::type &type)
string PrintPlanNodeType(const TPlanNodeType::type &type)
string PrintRow(TupleRow *row, const RowDescriptor &d)
string PrintTuple(const Tuple *t, const TupleDescriptor &d)
ostream & operator<<(ostream &os, const map< TNetworkAddress, llama::TAllocatedResource > &resources)
string PrintAsHex(const char *bytes, int64_t len)