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

#include <descriptors.h>

Inheritance diagram for impala::HdfsTableDescriptor:
Collaboration diagram for impala::HdfsTableDescriptor:

Public Types

typedef std::map< int64_t,
HdfsPartitionDescriptor * > 
PartitionIdToDescriptorMap
 

Public Member Functions

 HdfsTableDescriptor (const TTableDescriptor &tdesc, ObjectPool *pool)
 
const std::string & hdfs_base_dir () const
 
const std::string & null_partition_key_value () const
 
const std::string & null_column_value () const
 
const std::string & avro_schema () const
 
HdfsPartitionDescriptorGetPartition (int64_t partition_id) const
 
const PartitionIdToDescriptorMappartition_descriptors () const
 
virtual std::string DebugString () const
 
int num_cols () const
 
int num_clustering_cols () 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 hdfs_base_dir_
 
std::string null_partition_key_value_
 
std::string null_column_value_
 Special string to indicate NULL values in text-encoded columns. More...
 
PartitionIdToDescriptorMap partition_descriptors_
 
std::string avro_schema_
 Set to the table's Avro schema if this is an Avro table, empty string otherwise. More...
 
ObjectPoolobject_pool_
 Owned by DescriptorTbl. More...
 
std::string name_
 
std::string database_
 
TableId id_
 
int num_cols_
 
int num_clustering_cols_
 
std::vector< std::string > col_names_
 

Detailed Description

Definition at line 226 of file descriptors.h.

Member Typedef Documentation

Constructor & Destructor Documentation

impala::HdfsTableDescriptor::HdfsTableDescriptor ( const TTableDescriptor &  tdesc,
ObjectPool pool 
)

Member Function Documentation

const std::string& impala::HdfsTableDescriptor::avro_schema ( ) const
inline
const std::string& impala::TableDescriptor::database ( ) const
inlineinherited
string impala::HdfsTableDescriptor::DebugString ( ) const
virtual
HdfsPartitionDescriptor* impala::HdfsTableDescriptor::GetPartition ( int64_t  partition_id) const
inline
const std::string& impala::HdfsTableDescriptor::hdfs_base_dir ( ) const
inline
bool impala::TableDescriptor::IsClusteringCol ( const SlotDescriptor slot_desc) const
inlineinherited

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 impala::TableDescriptor::num_clustering_cols_.

const std::string& impala::TableDescriptor::name ( ) const
inlineinherited
const std::string& impala::HdfsTableDescriptor::null_partition_key_value ( ) const
inline

Definition at line 230 of file descriptors.h.

References null_partition_key_value_.

Referenced by impala::HdfsTableSink::InitOutputPartition().

const PartitionIdToDescriptorMap& impala::HdfsTableDescriptor::partition_descriptors ( ) const
inline

Member Data Documentation

std::string impala::HdfsTableDescriptor::avro_schema_
protected

Set to the table's Avro schema if this is an Avro table, empty string otherwise.

Definition at line 258 of file descriptors.h.

Referenced by avro_schema(), and HdfsTableDescriptor().

std::vector<std::string> impala::TableDescriptor::col_names_
protectedinherited
std::string impala::TableDescriptor::database_
protectedinherited

Definition at line 169 of file descriptors.h.

Referenced by impala::TableDescriptor::database().

std::string impala::HdfsTableDescriptor::hdfs_base_dir_
protected

Definition at line 252 of file descriptors.h.

Referenced by DebugString(), and hdfs_base_dir().

TableId impala::TableDescriptor::id_
protectedinherited

Definition at line 170 of file descriptors.h.

std::string impala::TableDescriptor::name_
protectedinherited

Definition at line 168 of file descriptors.h.

Referenced by impala::TableDescriptor::name().

std::string impala::HdfsTableDescriptor::null_column_value_
protected

Special string to indicate NULL values in text-encoded columns.

Definition at line 255 of file descriptors.h.

Referenced by DebugString(), and null_column_value().

std::string impala::HdfsTableDescriptor::null_partition_key_value_
protected

Definition at line 253 of file descriptors.h.

Referenced by DebugString(), and null_partition_key_value().

int impala::TableDescriptor::num_clustering_cols_
protectedinherited
int impala::TableDescriptor::num_cols_
protectedinherited
ObjectPool* impala::HdfsTableDescriptor::object_pool_
protected

Owned by DescriptorTbl.

Definition at line 260 of file descriptors.h.

Referenced by HdfsTableDescriptor().

PartitionIdToDescriptorMap impala::HdfsTableDescriptor::partition_descriptors_
protected

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