Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
impala::HdfsParquetScanner::BaseColumnReader Class Referenceabstract
Inheritance diagram for impala::HdfsParquetScanner::BaseColumnReader:
Collaboration diagram for impala::HdfsParquetScanner::BaseColumnReader:

Public Member Functions

virtual ~BaseColumnReader ()
 
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

 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

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_
 

Friends

class HdfsParquetScanner
 

Detailed Description

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

Constructor & Destructor Documentation

virtual impala::HdfsParquetScanner::BaseColumnReader::~BaseColumnReader ( )
inlinevirtual

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

Member Function Documentation

void impala::HdfsParquetScanner::BaseColumnReader::Close ( )
inline

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

References decompressor_.

THdfsCompression::type impala::HdfsParquetScanner::BaseColumnReader::codec ( ) const
inline

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

References metadata_, and impala::PARQUET_TO_IMPALA_CODEC.

int impala::HdfsParquetScanner::BaseColumnReader::col_idx ( ) const
inline
virtual void impala::HdfsParquetScanner::BaseColumnReader::CreateDictionaryDecoder ( uint8_t *  values,
int  size 
)
protectedpure virtual
virtual Status impala::HdfsParquetScanner::BaseColumnReader::InitDataPage ( uint8_t *  data,
int  size 
)
protectedpure virtual
int impala::HdfsParquetScanner::BaseColumnReader::max_def_level ( ) const
inline

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

References impala::HdfsParquetScanner::SchemaNode::max_def_level, and node_.

Referenced by ReadDataPage().

int HdfsParquetScanner::BaseColumnReader::ReadDefinitionLevel ( )
inlineprotected

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

virtual bool impala::HdfsParquetScanner::BaseColumnReader::ReadSlot ( void *  slot,
MemPool pool,
bool conjuncts_failed 
)
protectedpure virtual
bool HdfsParquetScanner::BaseColumnReader::ReadValue ( MemPool pool,
Tuple tuple,
bool conjuncts_failed 
)
inline

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

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

Status impala::HdfsParquetScanner::BaseColumnReader::Reset ( const parquet::ColumnMetaData *  metadata,
ScannerContext::Stream stream 
)
inline
const parquet::SchemaElement& impala::HdfsParquetScanner::BaseColumnReader::schema_element ( ) const
inline
int64_t impala::HdfsParquetScanner::BaseColumnReader::total_len ( ) const
inline

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

References metadata_.

Friends And Related Function Documentation

friend class HdfsParquetScanner
friend

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

Member Data Documentation

BitReader impala::HdfsParquetScanner::BaseColumnReader::bit_packed_def_levels_
protected

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

Referenced by ReadDataPage().

const Bitmap* impala::HdfsParquetScanner::BaseColumnReader::bitmap_filter_
protected
int64_t impala::HdfsParquetScanner::BaseColumnReader::bitmap_filter_rows_rejected_
protected
parquet::PageHeader impala::HdfsParquetScanner::BaseColumnReader::current_page_header_
protected
uint8_t* impala::HdfsParquetScanner::BaseColumnReader::data_
protected
boost::scoped_ptr<MemPool> impala::HdfsParquetScanner::BaseColumnReader::decompressed_data_pool_
protected

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

Referenced by ReadDataPage().

scoped_ptr<Codec> impala::HdfsParquetScanner::BaseColumnReader::decompressor_
protected

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

Referenced by Close(), ReadDataPage(), and Reset().

DictDecoderBase* impala::HdfsParquetScanner::BaseColumnReader::dict_decoder_base_
protected
uint32_t impala::HdfsParquetScanner::BaseColumnReader::hash_seed_
protected
const parquet::ColumnMetaData* impala::HdfsParquetScanner::BaseColumnReader::metadata_
protected

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

Referenced by codec(), ReadDataPage(), Reset(), and total_len().

const SchemaNode& impala::HdfsParquetScanner::BaseColumnReader::node_
protected

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

Referenced by col_idx(), max_def_level(), schema_element(), and slot_desc().

int impala::HdfsParquetScanner::BaseColumnReader::num_buffered_values_
protected

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

Referenced by ReadDataPage(), and Reset().

int64_t impala::HdfsParquetScanner::BaseColumnReader::num_values_read_
protected

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

Referenced by ReadDataPage(), and Reset().

HdfsParquetScanner* impala::HdfsParquetScanner::BaseColumnReader::parent_
protected
RleDecoder impala::HdfsParquetScanner::BaseColumnReader::rle_def_levels_
protected

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

Referenced by ReadDataPage().

int64_t impala::HdfsParquetScanner::BaseColumnReader::rows_returned_
protected
ScannerContext::Stream* impala::HdfsParquetScanner::BaseColumnReader::stream_
protected

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