Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Base class for table descriptors. More...
#include <descriptors.h>
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_ |
Base class for table descriptors.
Definition at line 148 of file descriptors.h.
impala::TableDescriptor::TableDescriptor | ( | const TTableDescriptor & | tdesc | ) |
Definition at line 91 of file descriptors.cc.
|
inlinevirtual |
Definition at line 151 of file descriptors.h.
|
inline |
Definition at line 165 of file descriptors.h.
References col_names_.
Referenced by impala::HdfsParquetTableWriter::AddRowGroup(), impala::HdfsParquetTableWriter::CreateSchema(), impala::HdfsParquetTableWriter::FlushCurrentRowGroup(), impala::HdfsTableSink::InitOutputPartition(), impala::DataSourceScanNode::Open(), impala::HdfsTableSink::PrepareExprs(), and impala::HdfsAvroScanner::VerifyTypesMatch().
|
inline |
Definition at line 164 of file descriptors.h.
References database_.
Referenced by impala::HdfsScanNode::StopAndFinalizeCounters().
|
virtual |
Reimplemented in impala::DataSourceTableDescriptor, impala::HBaseTableDescriptor, and impala::HdfsTableDescriptor.
Definition at line 100 of file descriptors.cc.
References col_names_, num_clustering_cols_, and num_cols_.
Referenced by impala::HdfsTableDescriptor::DebugString(), impala::HBaseTableDescriptor::DebugString(), and impala::DataSourceTableDescriptor::DebugString().
|
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_.
|
inline |
Definition at line 163 of file descriptors.h.
References name_.
Referenced by impala::HBaseTableWriter::Init(), impala::DataSourceScanNode::Open(), and impala::HdfsScanNode::StopAndFinalizeCounters().
|
inline |
Definition at line 153 of file descriptors.h.
References num_clustering_cols_.
Referenced by impala::HdfsParquetTableWriter::AddRowGroup(), impala::HdfsSequenceTableWriter::AppendRowBatch(), impala::HdfsTextTableWriter::AppendRowBatch(), impala::HdfsAvroTableWriter::ConsumeRow(), impala::HdfsParquetTableWriter::CreateSchema(), impala::HdfsSequenceTableWriter::EncodeRow(), impala::HdfsParquetTableWriter::FlushCurrentRowGroup(), impala::HdfsTableWriter::HdfsTableWriter(), impala::HdfsParquetTableWriter::Init(), impala::HdfsScanNode::num_partition_keys(), and impala::HdfsTableSink::PrepareExprs().
|
inline |
Definition at line 152 of file descriptors.h.
References num_cols_.
Referenced by impala::HBaseTableWriter::AppendRowBatch(), impala::HdfsSequenceTableWriter::AppendRowBatch(), impala::HdfsTextTableWriter::AppendRowBatch(), impala::HdfsAvroTableWriter::ConsumeRow(), impala::HdfsSequenceTableWriter::EncodeRow(), impala::HdfsTableWriter::HdfsTableWriter(), impala::HBaseTableWriter::Init(), impala::HdfsParquetTableWriter::Init(), impala::HdfsTextScanner::InitNewRange(), impala::HdfsSequenceScanner::InitNewRange(), impala::HdfsRCFileScanner::InitNewRange(), impala::HdfsTableSink::PrepareExprs(), and impala::HdfsAvroScanner::ResolveSchemas().
|
protected |
Definition at line 173 of file descriptors.h.
Referenced by col_names(), and DebugString().
|
protected |
Definition at line 169 of file descriptors.h.
Referenced by database().
|
protected |
Definition at line 170 of file descriptors.h.
|
protected |
Definition at line 168 of file descriptors.h.
Referenced by name().
|
protected |
Definition at line 172 of file descriptors.h.
Referenced by DebugString(), IsClusteringCol(), and num_clustering_cols().
|
protected |
Definition at line 171 of file descriptors.h.
Referenced by DebugString(), and num_cols().