Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
network-util.h File Reference
#include "common/status.h"
#include "gen-cpp/Types_types.h"
#include <vector>
Include dependency graph for network-util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

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

Functions

Status impala::HostnameToIpAddrs (const std::string &name, std::vector< std::string > *addresses)
 
bool impala::FindFirstNonLocalhost (const std::vector< std::string > &addresses, std::string *addr)
 
Status impala::GetHostname (std::string *hostname)
 
TNetworkAddress impala::MakeNetworkAddress (const std::string &hostname, int port)
 Utility method because Thrift does not supply useful constructors. More...
 
TNetworkAddress impala::MakeNetworkAddress (const std::string &address)
 
bool impala::IsWildcardAddress (const std::string &ipaddress)
 Returns true if the ip address parameter is the wildcard interface (0.0.0.0) More...
 
string impala::TNetworkAddressToString (const TNetworkAddress &address)
 Utility method to print address as address:port. More...
 
std::ostream & impala::operator<< (std::ostream &out, const TNetworkAddress &hostport)
 Prints a hostport as ipaddress:port. More...