Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
impala::TableDescriptor Class Reference

Base class for table descriptors. More...

#include <descriptors.h>

Inheritance diagram for impala::TableDescriptor:
Collaboration diagram for impala::TableDescriptor:

Public Member Functions

 TableDescriptor (const TTableDescriptor &tdesc)
 
virtual ~TableDescriptor ()
 
int num_cols () const
 
int num_clustering_cols () const
 
virtual std::string DebugString () const
 
bool IsClusteringCol (const SlotDescriptor *slot_desc) const
 
const std::string & name () const
 
const std::string & database () const
 
const std::vector< std::string > & col_names () const
 

Protected Attributes

std::string name_
 
std::string database_
 
TableId id_
 
int num_cols_
 
int num_clustering_cols_
 
std::vector< std::string > col_names_
 

Detailed Description

Base class for table descriptors.

Definition at line 148 of file descriptors.h.

Constructor & Destructor Documentation

impala::TableDescriptor::TableDescriptor ( const TTableDescriptor &  tdesc)

Definition at line 91 of file descriptors.cc.

virtual impala::TableDescriptor::~TableDescriptor ( )
inlinevirtual

Definition at line 151 of file descriptors.h.

Member Function Documentation

const std::string& impala::TableDescriptor::database ( ) const
inline

Definition at line 164 of file descriptors.h.

References database_.

Referenced by impala::HdfsScanNode::StopAndFinalizeCounters().

bool impala::TableDescriptor::IsClusteringCol ( const SlotDescriptor slot_desc) const
inline

The first num_clustering_cols_ columns by position are clustering columns.

Definition at line 158 of file descriptors.h.

References impala::SlotDescriptor::col_path(), and num_clustering_cols_.

const std::string& impala::TableDescriptor::name ( ) const
inline

Member Data Documentation

std::vector<std::string> impala::TableDescriptor::col_names_
protected

Definition at line 173 of file descriptors.h.

Referenced by col_names(), and DebugString().

std::string impala::TableDescriptor::database_
protected

Definition at line 169 of file descriptors.h.

Referenced by database().

TableId impala::TableDescriptor::id_
protected

Definition at line 170 of file descriptors.h.

std::string impala::TableDescriptor::name_
protected

Definition at line 168 of file descriptors.h.

Referenced by name().

int impala::TableDescriptor::num_clustering_cols_
protected

Definition at line 172 of file descriptors.h.

Referenced by DebugString(), IsClusteringCol(), and num_clustering_cols().

int impala::TableDescriptor::num_cols_
protected

Definition at line 171 of file descriptors.h.

Referenced by DebugString(), and num_cols().


The documentation for this class was generated from the following files: