Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Public Member Functions | |
ColumnWriter (HdfsParquetTableWriter *parent, ExprContext *ctx, const THdfsCompression::type &codec) | |
virtual void | Reset () |
Status | AppendRow (TupleRow *row) |
Status | Flush (int64_t *file_pos, int64_t *first_data_page, int64_t *first_dictionary_page) |
void | Close () |
const ColumnType & | type () const |
uint64_t | num_values () const |
uint64_t | total_compressed_size () const |
uint64_t | total_uncompressed_size () const |
parquet::CompressionCodec::type | codec () const |
Protected Member Functions | |
virtual bool | EncodeValue (void *value, int64_t *bytes_needed) |
virtual void | FinalizeCurrentPage () |
void | NewPage () |
void | WriteDictDataPage () |
Protected Attributes | |
HdfsParquetTableWriter * | parent_ |
ExprContext * | expr_ctx_ |
THdfsCompression::type | codec_ |
scoped_ptr< Codec > | compressor_ |
vector< DataPage > | pages_ |
int | num_data_pages_ |
int64_t | page_size_ |
DataPage * | current_page_ |
int64_t | num_values_ |
int64_t | total_compressed_byte_size_ |
int64_t | total_uncompressed_byte_size_ |
Encoding::type | current_encoding_ |
DictEncoderBase * | dict_encoder_base_ |
RleEncoder * | def_levels_ |
uint8_t * | values_buffer_ |
int | values_buffer_len_ |
Private Member Functions | |
T * | CastValue (void *value) |
template<> | |
StringValue * | CastValue (void *value) |
Private Attributes | |
scoped_ptr< DictEncoder< T > > | dict_encoder_ |
int | num_values_since_dict_size_check_ |
int64_t | encoded_value_size_ |
StringValue | temp_ |
Static Private Attributes | |
static const int | DICTIONARY_DATA_PAGE_SIZE_CHECK_PERIOD = 100 |
Definition at line 237 of file hdfs-parquet-table-writer.cc.
|
inline |
Definition at line 240 of file hdfs-parquet-table-writer.cc.
References impala::ParquetPlainEncoder::ByteSize(), impala::ExprContext::root(), impala::ColumnType::type, impala::Expr::type(), and impala::TYPE_BOOLEAN.
Definition at line 371 of file hdfs-parquet-table-writer.cc.
References impala::Status::OK, impala::PrettyPrinter::Print(), and UNLIKELY.
|
inlineprivate |
Definition at line 317 of file hdfs-parquet-table-writer.cc.
|
inlineprivate |
Definition at line 323 of file hdfs-parquet-table-writer.cc.
References impala::StringValue::CharSlotToPtr(), impala::TYPE_CHAR, and impala::StringValue::UnpaddedCharLength().
|
inlineinherited |
Definition at line 140 of file hdfs-parquet-table-writer.cc.
|
inlineinherited |
Definition at line 149 of file hdfs-parquet-table-writer.cc.
References impala::IMPALA_TO_PARQUET_CODEC.
|
inlineprotectedvirtual |
Implements impala::HdfsParquetTableWriter::BaseColumnWriter.
Definition at line 258 of file hdfs-parquet-table-writer.cc.
References impala::ParquetPlainEncoder::Encode(), impala::PLAIN, and UNLIKELY.
|
protectedvirtualinherited |
Reimplemented in impala::HdfsParquetTableWriter::BoolColumnWriter.
Definition at line 522 of file hdfs-parquet-table-writer.cc.
References impala::BufferBuilder::Append(), impala::BufferBuilder::capacity(), impala::PLAIN, SCOPED_TIMER, and impala::BufferBuilder::size().
|
inherited |
Definition at line 432 of file hdfs-parquet-table-writer.cc.
References impala::HdfsParquetTableWriter::BaseColumnWriter::DataPage::data, impala::HdfsParquetTableWriter::BaseColumnWriter::DataPage::header, impala::Status::OK, RETURN_IF_ERROR, and SCOPED_TIMER.
|
protectedinherited |
Definition at line 597 of file hdfs-parquet-table-writer.cc.
|
inlineinherited |
Definition at line 146 of file hdfs-parquet-table-writer.cc.
|
inlinevirtual |
Reimplemented from impala::HdfsParquetTableWriter::BaseColumnWriter.
Definition at line 247 of file hdfs-parquet-table-writer.cc.
|
inlineinherited |
Definition at line 147 of file hdfs-parquet-table-writer.cc.
|
inlineinherited |
Definition at line 148 of file hdfs-parquet-table-writer.cc.
|
inlineinherited |
Definition at line 145 of file hdfs-parquet-table-writer.cc.
References impala::ColumnType::type.
Referenced by impala::HdfsParquetTableWriter::Init().
|
inlineprotectedinherited |
Definition at line 416 of file hdfs-parquet-table-writer.cc.
References UNLIKELY.
|
protectedinherited |
Definition at line 196 of file hdfs-parquet-table-writer.cc.
|
protectedinherited |
Definition at line 199 of file hdfs-parquet-table-writer.cc.
|
protectedinherited |
Definition at line 218 of file hdfs-parquet-table-writer.cc.
|
protectedinherited |
Definition at line 214 of file hdfs-parquet-table-writer.cc.
|
protectedinherited |
Definition at line 227 of file hdfs-parquet-table-writer.cc.
|
private |
Definition at line 305 of file hdfs-parquet-table-writer.cc.
|
protectedinherited |
Definition at line 221 of file hdfs-parquet-table-writer.cc.
|
staticprivate |
Definition at line 302 of file hdfs-parquet-table-writer.cc.
|
private |
Definition at line 311 of file hdfs-parquet-table-writer.cc.
|
protectedinherited |
Definition at line 194 of file hdfs-parquet-table-writer.cc.
|
protectedinherited |
Definition at line 205 of file hdfs-parquet-table-writer.cc.
|
protectedinherited |
Definition at line 215 of file hdfs-parquet-table-writer.cc.
|
private |
Definition at line 308 of file hdfs-parquet-table-writer.cc.
|
protectedinherited |
Definition at line 212 of file hdfs-parquet-table-writer.cc.
|
protectedinherited |
Definition at line 201 of file hdfs-parquet-table-writer.cc.
|
protectedinherited |
Definition at line 193 of file hdfs-parquet-table-writer.cc.
|
private |
Definition at line 314 of file hdfs-parquet-table-writer.cc.
|
protectedinherited |
Definition at line 216 of file hdfs-parquet-table-writer.cc.
|
protectedinherited |
Definition at line 217 of file hdfs-parquet-table-writer.cc.
|
protectedinherited |
Definition at line 230 of file hdfs-parquet-table-writer.cc.
|
protectedinherited |
Definition at line 232 of file hdfs-parquet-table-writer.cc.