mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Update IBlockInputStream.h
This commit is contained in:
parent
d54d44d97d
commit
d0629a9df6
@ -25,6 +25,10 @@ using TableStructureReadLocksList = std::list<TableStructureReadLockPtr>;
|
||||
|
||||
struct Progress;
|
||||
|
||||
namespace ErrorCodes
|
||||
{
|
||||
extern const int OUTPUT_IS_NOT_SORTED;
|
||||
}
|
||||
|
||||
|
||||
/** Коллбэк для отслеживания прогресса выполнения запроса.
|
||||
@ -77,8 +81,10 @@ public:
|
||||
*/
|
||||
virtual String getID() const = 0;
|
||||
|
||||
/// If this stream generates data in order by some keys, return true.
|
||||
virtual bool isSortedOutput() const { return false; }
|
||||
virtual const SortDescription & getSortDescription() const { throw std::logic_error( "has no SortDescription" ); }
|
||||
/// In case of isSortedOutput, return corresponding SortDescription
|
||||
virtual const SortDescription & getSortDescription() const { throw Exception("Output of " + getName() + " is not sorted", ErrorCodes::OUTPUT_IS_NOT_SORTED); }
|
||||
|
||||
BlockInputStreams & getChildren() { return children; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user