Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Public Member Functions | |
virtual | ~BaseColumnReader () |
Status | Reset (const parquet::ColumnMetaData *metadata, ScannerContext::Stream *stream) |
void | Close () |
int64_t | total_len () const |
const SlotDescriptor * | slot_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 | |
BaseColumnReader (HdfsParquetScanner *parent, const SchemaNode &node) | |
Status | ReadDataPage () |
int | ReadDefinitionLevel () |
virtual void | CreateDictionaryDecoder (uint8_t *values, int size)=0 |
virtual Status | InitDataPage (uint8_t *data, int size)=0 |
virtual bool | ReadSlot (void *slot, MemPool *pool, bool *conjuncts_failed)=0 |
Protected Attributes | |
HdfsParquetScanner * | parent_ |
const SchemaNode & | node_ |
const parquet::ColumnMetaData * | metadata_ |
scoped_ptr< Codec > | decompressor_ |
ScannerContext::Stream * | stream_ |
boost::scoped_ptr< MemPool > | decompressed_data_pool_ |
parquet::PageHeader | current_page_header_ |
int | num_buffered_values_ |
uint8_t * | data_ |
RleDecoder | rle_def_levels_ |
BitReader | bit_packed_def_levels_ |
DictDecoderBase * | dict_decoder_base_ |
int64_t | num_values_read_ |
const Bitmap * | bitmap_filter_ |
uint32_t | hash_seed_ |
int64_t | rows_returned_ |
int64_t | bitmap_filter_rows_rejected_ |
Friends | |
class | HdfsParquetScanner |
Definition at line 140 of file hdfs-parquet-scanner.cc.
|
inlinevirtual |
Definition at line 142 of file hdfs-parquet-scanner.cc.
|
inlineprotected |
Definition at line 240 of file hdfs-parquet-scanner.cc.
References bitmap_filter_, bitmap_filter_rows_rejected_, impala::HdfsParquetScanner::SchemaNode::col_idx, impala::RuntimeState::fragment_hash_seed(), impala::RuntimeState::GetBitmapFilter(), hash_seed_, impala::HdfsParquetScanner::SchemaNode::max_def_level, parent_, rows_returned_, impala::HdfsScanNode::runtime_state(), impala::HdfsScanner::scan_node_, impala::HdfsParquetScanner::SchemaNode::slot_desc, and slot_desc().
|
inline |
Definition at line 163 of file hdfs-parquet-scanner.cc.
References decompressor_.
|
inline |
Definition at line 172 of file hdfs-parquet-scanner.cc.
References metadata_, and impala::PARQUET_TO_IMPALA_CODEC.
|
inline |
Definition at line 170 of file hdfs-parquet-scanner.cc.
References impala::HdfsParquetScanner::SchemaNode::col_idx, and node_.
Referenced by impala::HdfsParquetScanner::ValidateColumn().
|
protectedpure virtual |
Implemented in impala::HdfsParquetScanner::BoolColumnReader, and impala::HdfsParquetScanner::ColumnReader< T >.
Referenced by ReadDataPage().
|
protectedpure virtual |
Implemented in impala::HdfsParquetScanner::BoolColumnReader, and impala::HdfsParquetScanner::ColumnReader< T >.
Referenced by ReadDataPage().
|
inline |
Definition at line 171 of file hdfs-parquet-scanner.cc.
References impala::HdfsParquetScanner::SchemaNode::max_def_level, and node_.
Referenced by ReadDataPage().
|
protected |
Definition at line 532 of file hdfs-parquet-scanner.cc.
References impala::Status::AddDetail(), impala::HdfsScanner::AttachPool(), bit_packed_def_levels_, impala::BitUtil::Ceil(), CreateDictionaryDecoder(), current_page_header_, data_, impala::HdfsScanner::decompress_timer_, decompressed_data_pool_, decompressor_, impala::DeserializeThriftMsg(), dict_decoder_base_, impala::HdfsParquetScanner::dictionary_pool_, impala::ScannerContext::Stream::eosr(), impala::HdfsParquetScanner::file_version_, impala::ScannerContext::Stream::GetBuffer(), impala::ScannerContext::Stream::GetBytes(), InitDataPage(), impala::BitUtil::Log2(), LOG_OR_ABORT, max_def_level(), MAX_PAGE_HEADER_SIZE, metadata_, num_buffered_values_, impala::DictDecoderBase::num_entries(), impala::HdfsScanNode::num_partition_keys(), num_values_read_, impala::Status::OK, impala::Status::ok(), parent_, impala::PLAIN, impala::PrettyPrinter::Print(), impala::ReadWriteUtil::Read(), impala::ScannerContext::Stream::ReadBytes(), RequiresSkippedDictionaryHeaderCheck(), RETURN_IF_ERROR, rle_def_levels_, impala::HdfsScanNode::runtime_state(), impala::HdfsScanner::scan_node_, SCOPED_TIMER, impala::ScannerContext::Stream::SkipBytes(), slot_desc(), stream_, impala::TYPE_BOOLEAN, and VLOG_FILE.
|
inlineprotected |
Definition at line 720 of file hdfs-parquet-scanner.cc.
|
inline |
Definition at line 744 of file hdfs-parquet-scanner.cc.
References impala::Tuple::GetSlot(), pool, and impala::Tuple::SetNull().
|
inline |
Definition at line 145 of file hdfs-parquet-scanner.cc.
References impala::Codec::CreateDecompressor(), data_, decompressor_, dict_decoder_base_, metadata_, num_buffered_values_, num_values_read_, impala::Status::OK, impala::PARQUET_TO_IMPALA_CODEC, RETURN_IF_ERROR, and stream_.
|
inline |
Definition at line 169 of file hdfs-parquet-scanner.cc.
References impala::HdfsParquetScanner::SchemaNode::element, and node_.
Referenced by impala::HdfsParquetScanner::ValidateColumn().
|
inline |
Definition at line 168 of file hdfs-parquet-scanner.cc.
References node_, and impala::HdfsParquetScanner::SchemaNode::slot_desc.
Referenced by BaseColumnReader(), impala::HdfsParquetScanner::BoolColumnReader::BoolColumnReader(), impala::HdfsParquetScanner::ColumnReader< T >::ColumnReader(), ReadDataPage(), impala::HdfsParquetScanner::ColumnReader< T >::ReadSlot(), and impala::HdfsParquetScanner::ValidateColumn().
|
inline |
Definition at line 167 of file hdfs-parquet-scanner.cc.
References metadata_.
|
friend |
Definition at line 195 of file hdfs-parquet-scanner.cc.
|
protected |
Definition at line 219 of file hdfs-parquet-scanner.cc.
Referenced by ReadDataPage().
|
protected |
Definition at line 228 of file hdfs-parquet-scanner.cc.
Referenced by BaseColumnReader(), impala::HdfsParquetScanner::ColumnReader< T >::InitDataPage(), and impala::HdfsParquetScanner::ColumnReader< T >::ReadSlot().
|
protected |
Definition at line 238 of file hdfs-parquet-scanner.cc.
Referenced by BaseColumnReader(), impala::HdfsParquetScanner::ColumnReader< T >::InitDataPage(), and impala::HdfsParquetScanner::ColumnReader< T >::ReadSlot().
|
protected |
Definition at line 208 of file hdfs-parquet-scanner.cc.
Referenced by impala::HdfsParquetScanner::ColumnReader< T >::InitDataPage(), ReadDataPage(), and impala::HdfsParquetScanner::ColumnReader< T >::ReadSlot().
|
protected |
Definition at line 214 of file hdfs-parquet-scanner.cc.
Referenced by ReadDataPage(), impala::HdfsParquetScanner::ColumnReader< T >::ReadSlot(), and Reset().
|
protected |
Definition at line 205 of file hdfs-parquet-scanner.cc.
Referenced by ReadDataPage().
|
protected |
Definition at line 201 of file hdfs-parquet-scanner.cc.
Referenced by Close(), ReadDataPage(), and Reset().
|
protected |
Definition at line 222 of file hdfs-parquet-scanner.cc.
Referenced by impala::HdfsParquetScanner::ColumnReader< T >::CreateDictionaryDecoder(), ReadDataPage(), and Reset().
|
protected |
Definition at line 230 of file hdfs-parquet-scanner.cc.
Referenced by BaseColumnReader(), and impala::HdfsParquetScanner::ColumnReader< T >::ReadSlot().
|
protected |
Definition at line 200 of file hdfs-parquet-scanner.cc.
Referenced by codec(), ReadDataPage(), Reset(), and total_len().
|
protected |
Definition at line 198 of file hdfs-parquet-scanner.cc.
Referenced by col_idx(), max_def_level(), schema_element(), and slot_desc().
|
protected |
Definition at line 211 of file hdfs-parquet-scanner.cc.
Referenced by ReadDataPage(), and Reset().
|
protected |
Definition at line 225 of file hdfs-parquet-scanner.cc.
Referenced by ReadDataPage(), and Reset().
|
protected |
Definition at line 197 of file hdfs-parquet-scanner.cc.
Referenced by BaseColumnReader(), ReadDataPage(), and impala::HdfsParquetScanner::BoolColumnReader::ReadSlot().
|
protected |
Definition at line 218 of file hdfs-parquet-scanner.cc.
Referenced by ReadDataPage().
|
protected |
Definition at line 237 of file hdfs-parquet-scanner.cc.
Referenced by BaseColumnReader(), impala::HdfsParquetScanner::ColumnReader< T >::InitDataPage(), and impala::HdfsParquetScanner::ColumnReader< T >::ReadSlot().
|
protected |
Definition at line 202 of file hdfs-parquet-scanner.cc.
Referenced by impala::HdfsParquetScanner::AssembleRows(), ReadDataPage(), and Reset().