Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
thrift-util.h File Reference
#include <boost/shared_ptr.hpp>
#include <thrift/protocol/TBinaryProtocol.h>
#include <sstream>
#include <vector>
#include <thrift/TApplicationException.h>
#include <thrift/protocol/TDebugProtocol.h>
#include <thrift/transport/TBufferTransports.h>
#include "common/status.h"
Include dependency graph for thrift-util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  impala::ThriftSerializer
 
class  impala::ThriftDeserializer
 

Namespaces

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

Functions

boost::shared_ptr
< apache::thrift::protocol::TProtocol > 
impala::CreateDeserializeProtocol (boost::shared_ptr< apache::thrift::transport::TMemoryBuffer > mem, bool compact)
 Utility to create a protocol (deserialization) object for 'mem'. More...
 
template<class T >
Status impala::DeserializeThriftMsg (const uint8_t *buf, uint32_t *len, bool compact, T *deserialized_msg)
 
void impala::InitThriftLogging ()
 Redirects all Thrift logging to VLOG(1) More...
 
Status impala::WaitForLocalServer (const ThriftServer &server, int num_retries, int retry_interval_ms)
 
Status impala::WaitForServer (const std::string &host, int port, int num_retries, int retry_interval_ms)
 Wait for a server to start accepting connections, up to a maximum timeout. More...
 
std::ostream & impala::operator<< (std::ostream &out, const TColumnValue &colval)
 Print a TColumnValue. If null, print "NULL". More...
 
bool impala::TNetworkAddressComparator (const TNetworkAddress &a, const TNetworkAddress &b)
 
bool impala::IsTimeoutTException (const apache::thrift::TException &e)
 Returns true if the TException corresponds to a TCP socket recv or send timeout. More...