Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
debug-util.cc File Reference
#include "util/debug-util.h"
#include <iomanip>
#include <sstream>
#include <boost/foreach.hpp>
#include "common/version.h"
#include "runtime/descriptors.h"
#include "runtime/raw-value.h"
#include "runtime/tuple-row.h"
#include "runtime/row-batch.h"
#include "util/cpu-info.h"
#include "util/string-parser.h"
#include "common/names.h"
Include dependency graph for debug-util.cc:

Go to the source code of this file.

Namespaces

 google
 
 google::glog_internal_namespace_
 
 impala
 This file contains type definitions that are used throughout the code base.
 

Macros

#define THRIFT_ENUM_OUTPUT_FN_IMPL(E, MAP)
 
#define THRIFT_ENUM_OUTPUT_FN(E)   THRIFT_ENUM_OUTPUT_FN_IMPL(E , _##E##_VALUES_TO_NAMES)
 
#define THRIFT_ENUM_PRINT_FN(E)
 

Functions

void google::glog_internal_namespace_::DumpStackTraceToString (std::string *s)
 
 impala::THRIFT_ENUM_OUTPUT_FN (TFunctionBinaryType)
 
 impala::THRIFT_ENUM_OUTPUT_FN (TCatalogObjectType)
 
 impala::THRIFT_ENUM_OUTPUT_FN (TDdlType)
 
 impala::THRIFT_ENUM_OUTPUT_FN (TCatalogOpType)
 
 impala::THRIFT_ENUM_OUTPUT_FN (THdfsFileFormat)
 
 impala::THRIFT_ENUM_OUTPUT_FN (THdfsCompression)
 
 impala::THRIFT_ENUM_OUTPUT_FN (TSessionType)
 
 impala::THRIFT_ENUM_OUTPUT_FN (TStmtType)
 
 impala::THRIFT_ENUM_OUTPUT_FN (QueryState)
 
 impala::THRIFT_ENUM_OUTPUT_FN (Encoding)
 
 impala::THRIFT_ENUM_OUTPUT_FN (CompressionCodec)
 
 impala::THRIFT_ENUM_OUTPUT_FN (Type)
 
 impala::THRIFT_ENUM_OUTPUT_FN (TMetricKind)
 
 impala::THRIFT_ENUM_OUTPUT_FN (TUnit)
 
 impala::THRIFT_ENUM_PRINT_FN (TCatalogObjectType)
 
 impala::THRIFT_ENUM_PRINT_FN (TDdlType)
 
 impala::THRIFT_ENUM_PRINT_FN (TCatalogOpType)
 
 impala::THRIFT_ENUM_PRINT_FN (TSessionType)
 
 impala::THRIFT_ENUM_PRINT_FN (TStmtType)
 
 impala::THRIFT_ENUM_PRINT_FN (QueryState)
 
 impala::THRIFT_ENUM_PRINT_FN (Encoding)
 
 impala::THRIFT_ENUM_PRINT_FN (TMetricKind)
 
 impala::THRIFT_ENUM_PRINT_FN (TUnit)
 
ostream & impala::operator<< (ostream &os, const TUniqueId &id)
 
string impala::PrintId (const TUniqueId &id, const string &separator)
 
string impala::PrintAsHex (const char *bytes, int64_t len)
 
bool impala::ParseId (const string &s, TUniqueId *id)
 
string impala::PrintPlanNodeType (const TPlanNodeType::type &type)
 
string impala::PrintTuple (const Tuple *t, const TupleDescriptor &d)
 
string impala::PrintRow (TupleRow *row, const RowDescriptor &d)
 
string impala::PrintBatch (RowBatch *batch)
 
string impala::PrintPath (const vector< int > &path)
 
string impala::GetBuildVersion (bool compact)
 
string impala::GetVersionString (bool compact=false)
 Returns "<program short name> version <GetBuildVersion(compact)>". More...
 
string impala::GetStackTrace ()
 

Macro Definition Documentation

#define THRIFT_ENUM_OUTPUT_FN (   E)    THRIFT_ENUM_OUTPUT_FN_IMPL(E , _##E##_VALUES_TO_NAMES)

Definition at line 56 of file debug-util.cc.

#define THRIFT_ENUM_OUTPUT_FN_IMPL (   E,
  MAP 
)
Value:
ostream& operator<<(ostream& os, const E::type& e) {\
map<int, const char*>::const_iterator i;\
i = MAP.find(e);\
if (i != MAP.end()) {\
os << i->second;\
}\
return os;\
}
ostream & operator<<(ostream &os, const TUniqueId &id)
Definition: debug-util.cc:92

Definition at line 45 of file debug-util.cc.

#define THRIFT_ENUM_PRINT_FN (   E)
Value:
string Print##E(const E::type& e) {\
stringstream ss;\
ss << e;\
return ss.str();\
}

Definition at line 59 of file debug-util.cc.