Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
impala::HdfsParquetScanner::ColumnReader< T > Class Template Reference
Inheritance diagram for impala::HdfsParquetScanner::ColumnReader< T >:
Collaboration diagram for impala::HdfsParquetScanner::ColumnReader< T >:

Public Member Functions

 ColumnReader (HdfsParquetScanner *parent, const SchemaNode &node)
 
Status Reset (const parquet::ColumnMetaData *metadata, ScannerContext::Stream *stream)
 
void Close ()
 
int64_t total_len () const
 
const SlotDescriptorslot_desc () const
 
const parquet::SchemaElement & schema_element () const
 
int col_idx () const
 
int max_def_level () const
 
THdfsCompression::type codec () const
 
bool ReadValue (MemPool *pool, Tuple *tuple, bool *conjuncts_failed)
 

Protected Member Functions

virtual void CreateDictionaryDecoder (uint8_t *values, int size)
 
virtual Status InitDataPage (uint8_t *data, int size)
 
virtual bool ReadSlot (void *slot, MemPool *pool, bool *conjuncts_failed)
 
Status ReadDataPage ()
 
int ReadDefinitionLevel ()
 

Protected Attributes

HdfsParquetScannerparent_
 
const SchemaNodenode_
 
const parquet::ColumnMetaData * metadata_
 
scoped_ptr< Codecdecompressor_
 
ScannerContext::Streamstream_
 
boost::scoped_ptr< MemPooldecompressed_data_pool_
 
parquet::PageHeader current_page_header_
 
int num_buffered_values_
 
uint8_t * data_
 
RleDecoder rle_def_levels_
 
BitReader bit_packed_def_levels_
 
DictDecoderBasedict_decoder_base_
 
int64_t num_values_read_
 
const Bitmapbitmap_filter_
 
uint32_t hash_seed_
 
int64_t rows_returned_
 
int64_t bitmap_filter_rows_rejected_
 

Private Member Functions

void CopySlot (T *slot, MemPool *pool)
 
void ConvertSlot (const T *src, T *dst, MemPool *pool)
 
template<>
void CopySlot (StringValue *slot, MemPool *pool)
 
template<>
void ConvertSlot (const StringValue *src, StringValue *dst, MemPool *pool)
 
template<>
void ConvertSlot (const TimestampValue *src, TimestampValue *dst, MemPool *pool)
 

Private Attributes

scoped_ptr< DictDecoder< T > > dict_decoder_
 
bool needs_conversion_
 
int fixed_len_size_
 

Detailed Description

template<typename T>
class impala::HdfsParquetScanner::ColumnReader< T >

Definition at line 285 of file hdfs-parquet-scanner.cc.

Constructor & Destructor Documentation

Member Function Documentation

void impala::HdfsParquetScanner::BaseColumnReader::Close ( )
inlineinherited
THdfsCompression::type impala::HdfsParquetScanner::BaseColumnReader::codec ( ) const
inlineinherited
int impala::HdfsParquetScanner::BaseColumnReader::col_idx ( ) const
inlineinherited
template<typename T >
void impala::HdfsParquetScanner::ColumnReader< T >::ConvertSlot ( const T *  src,
T *  dst,
MemPool pool 
)
inlineprivate
template<>
void impala::HdfsParquetScanner::ColumnReader< TimestampValue >::ConvertSlot ( const TimestampValue src,
TimestampValue dst,
MemPool pool 
)
private
template<typename T >
void impala::HdfsParquetScanner::ColumnReader< T >::CopySlot ( T *  slot,
MemPool pool 
)
inlineprivate

Definition at line 353 of file hdfs-parquet-scanner.cc.

template<>
void impala::HdfsParquetScanner::ColumnReader< StringValue >::CopySlot ( StringValue slot,
MemPool pool 
)
private
int impala::HdfsParquetScanner::BaseColumnReader::max_def_level ( ) const
inlineinherited
Status HdfsParquetScanner::BaseColumnReader::ReadDataPage ( )
protectedinherited

Definition at line 532 of file hdfs-parquet-scanner.cc.

References impala::Status::AddDetail(), impala::HdfsScanner::AttachPool(), impala::HdfsParquetScanner::BaseColumnReader::bit_packed_def_levels_, impala::BitUtil::Ceil(), impala::HdfsParquetScanner::BaseColumnReader::CreateDictionaryDecoder(), impala::HdfsParquetScanner::BaseColumnReader::current_page_header_, impala::HdfsParquetScanner::BaseColumnReader::data_, impala::HdfsScanner::decompress_timer_, impala::HdfsParquetScanner::BaseColumnReader::decompressed_data_pool_, impala::HdfsParquetScanner::BaseColumnReader::decompressor_, impala::DeserializeThriftMsg(), impala::HdfsParquetScanner::BaseColumnReader::dict_decoder_base_, impala::HdfsParquetScanner::dictionary_pool_, impala::ScannerContext::Stream::eosr(), impala::HdfsParquetScanner::file_version_, impala::ScannerContext::Stream::GetBuffer(), impala::ScannerContext::Stream::GetBytes(), impala::HdfsParquetScanner::BaseColumnReader::InitDataPage(), impala::BitUtil::Log2(), LOG_OR_ABORT, impala::HdfsParquetScanner::BaseColumnReader::max_def_level(), MAX_PAGE_HEADER_SIZE, impala::HdfsParquetScanner::BaseColumnReader::metadata_, impala::HdfsParquetScanner::BaseColumnReader::num_buffered_values_, impala::DictDecoderBase::num_entries(), impala::HdfsScanNode::num_partition_keys(), impala::HdfsParquetScanner::BaseColumnReader::num_values_read_, impala::Status::OK, impala::Status::ok(), impala::HdfsParquetScanner::BaseColumnReader::parent_, impala::PLAIN, impala::PrettyPrinter::Print(), impala::ReadWriteUtil::Read(), impala::ScannerContext::Stream::ReadBytes(), RequiresSkippedDictionaryHeaderCheck(), RETURN_IF_ERROR, impala::HdfsParquetScanner::BaseColumnReader::rle_def_levels_, impala::HdfsScanNode::runtime_state(), impala::HdfsScanner::scan_node_, SCOPED_TIMER, impala::ScannerContext::Stream::SkipBytes(), impala::HdfsParquetScanner::BaseColumnReader::slot_desc(), impala::HdfsParquetScanner::BaseColumnReader::stream_, impala::TYPE_BOOLEAN, and VLOG_FILE.

int HdfsParquetScanner::BaseColumnReader::ReadDefinitionLevel ( )
inlineprotectedinherited

Definition at line 720 of file hdfs-parquet-scanner.cc.

bool HdfsParquetScanner::BaseColumnReader::ReadValue ( MemPool pool,
Tuple tuple,
bool conjuncts_failed 
)
inlineinherited

Definition at line 744 of file hdfs-parquet-scanner.cc.

References impala::Tuple::GetSlot(), pool, and impala::Tuple::SetNull().

const parquet::SchemaElement& impala::HdfsParquetScanner::BaseColumnReader::schema_element ( ) const
inlineinherited
int64_t impala::HdfsParquetScanner::BaseColumnReader::total_len ( ) const
inlineinherited

Member Data Documentation

BitReader impala::HdfsParquetScanner::BaseColumnReader::bit_packed_def_levels_
protectedinherited
const Bitmap* impala::HdfsParquetScanner::BaseColumnReader::bitmap_filter_
protectedinherited
int64_t impala::HdfsParquetScanner::BaseColumnReader::bitmap_filter_rows_rejected_
protectedinherited
parquet::PageHeader impala::HdfsParquetScanner::BaseColumnReader::current_page_header_
protectedinherited
uint8_t* impala::HdfsParquetScanner::BaseColumnReader::data_
protectedinherited
boost::scoped_ptr<MemPool> impala::HdfsParquetScanner::BaseColumnReader::decompressed_data_pool_
protectedinherited
scoped_ptr<Codec> impala::HdfsParquetScanner::BaseColumnReader::decompressor_
protectedinherited
uint32_t impala::HdfsParquetScanner::BaseColumnReader::hash_seed_
protectedinherited
int impala::HdfsParquetScanner::BaseColumnReader::num_buffered_values_
protectedinherited
int64_t impala::HdfsParquetScanner::BaseColumnReader::num_values_read_
protectedinherited
RleDecoder impala::HdfsParquetScanner::BaseColumnReader::rle_def_levels_
protectedinherited
int64_t impala::HdfsParquetScanner::BaseColumnReader::rows_returned_
protectedinherited

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