15 #ifndef IMPALA_EXEC_SORT_NODE_H
16 #define IMPALA_EXEC_SORT_NODE_H
47 virtual void DebugString(
int indentation_level, std::stringstream* out)
const;
boost::scoped_ptr< Sorter > sorter_
Object used for external sorting.
int64_t num_rows_skipped_
virtual Status Prepare(RuntimeState *state)
virtual Status Open(RuntimeState *state)
virtual Status Reset(RuntimeState *state)
std::vector< bool > is_asc_order_
virtual Status Init(const TPlanNode &tnode)
std::string DebugString() const
Returns a string representation in DFS order of the plan rooted at this.
Status SortInput(RuntimeState *state)
Fetch input rows and feed them to the sorter until the input is exhausted.
virtual void Close(RuntimeState *state)
int64_t offset_
Number of rows to skip.
Status CreateBlockMgr(RuntimeState *state)
SortExecExprs sort_exec_exprs_
Expressions and parameters used for tuple materialization and tuple comparison.
SortNode(ObjectPool *pool, const TPlanNode &tnode, const DescriptorTbl &descs)
virtual Status GetNext(RuntimeState *state, RowBatch *row_batch, bool *eos)
std::vector< bool > nulls_first_