22 #include "gen-cpp/ImpalaInternalService_constants.h"
29 g_ImpalaInternalService_constants.ROOT_PARTITION_KEY;
32 const vector<TExpr>& select_list_texprs,
33 const TDataSink& tsink)
34 : table_id_(tsink.table_sink.target_table_id),
36 hbase_table_writer_(NULL),
38 select_list_texprs_(select_list_texprs) {
47 Expr::Prepare(output_expr_ctxs_, state,
row_desc_, expr_mem_tracker_.get()));
63 hbase_table_writer_.reset(
71 TInsertPartitionStatus root_status;
72 root_status.__set_num_appended_rows(0L);
73 root_status.__set_stats(TInsertStats());
74 root_status.__set_id(-1L);
81 return Expr::Open(output_expr_ctxs_, state);
86 ExprContext::FreeLocalAllocations(output_expr_ctxs_);
99 if (hbase_table_writer_.get() != NULL) {
100 hbase_table_writer_->Close(state);
101 hbase_table_writer_.reset(NULL);
103 Expr::Close(output_expr_ctxs_, state);
TableDescriptor * GetTableDescriptor(TableId id) const
#define RETURN_IF_ERROR(stmt)
some generally useful macros
PartitionStatusMap * per_partition_status()
HBaseTableSink(const RowDescriptor &row_desc, const std::vector< TExpr > &select_list_texprs, const TDataSink &tsink)
ObjectPool * obj_pool() const
static const string & ROOT_PARTITION_KEY
const DescriptorTbl & desc_tbl() const
const RowDescriptor & row_desc() const
const RowDescriptor * row_desc_
owned by plan root, which resides in runtime_state_'s pool
double Send(ThriftClient< NetworkTestServiceClient > *client, int64_t bytes)