15 #ifndef IMPALA_EXEC_HBASE_TABLE_SINK_H
16 #define IMPALA_EXEC_HBASE_TABLE_SINK_H
26 #include "gen-cpp/Data_types.h"
27 #include "gen-cpp/Exprs_types.h"
36 const std::vector<TExpr>& select_list_texprs,
37 const TDataSink& tsink);
72 #endif // IMPALA_EXEC_HBASE_TABLE_SINK_H
boost::scoped_ptr< HBaseTableWriter > hbase_table_writer_
HBaseTableSink(const RowDescriptor &row_desc, const std::vector< TExpr > &select_list_texprs, const TDataSink &tsink)
TableId table_id_
Used to get the HBaseTableDescriptor from the RuntimeState.
Superclass of all data sinks.
const RowDescriptor & row_desc_
Owned by the RuntimeState.
virtual Status Prepare(RuntimeState *state)
virtual Status Open(RuntimeState *state)
Call before Send() or Close().
virtual RuntimeProfile * profile()
Returns the runtime profile for the sink.
const RowDescriptor & row_desc() const
const std::vector< TExpr > & select_list_texprs_
Owned by the RuntimeState.
HBaseTableDescriptor * table_desc_
The description of the table. Used for table name and column mapping.
std::vector< ExprContext * > output_expr_ctxs_
Status PrepareExprs(RuntimeState *state)
Turn thrift TExpr into Expr and prepare them to run.
RuntimeProfile * runtime_profile_
Allocated from runtime state's pool.
virtual void Close(RuntimeState *state)
virtual Status Send(RuntimeState *state, RowBatch *batch, bool eos)