ClickHouse/dbms/src/DataStreams/PartialSortingBlockInputStream.cpp

19 lines
266 B
C++
Raw Normal View History

#include <Interpreters/sortBlock.h>
2012-07-17 14:37:43 +00:00
#include <DataStreams/PartialSortingBlockInputStream.h>
2011-09-04 00:22:19 +00:00
namespace DB
{
2011-09-26 11:05:38 +00:00
2011-09-04 21:23:19 +00:00
Block PartialSortingBlockInputStream::readImpl()
2011-09-04 00:22:19 +00:00
{
Block res = children.back()->read();
sortBlock(res, description, limit);
return res;
2011-09-04 00:22:19 +00:00
}
2011-09-26 11:05:38 +00:00
2011-09-04 00:22:19 +00:00
}