aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Processors/Formats/IOutputFormat.h
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2023-12-09 10:11:16 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2023-12-09 10:33:35 +0300
commitfa9347ea5cf4447897b525032be9a711cc3dc583 (patch)
tree4f3d4f493e4cfb43a3c8b5f7e279621c41e0e978 /contrib/clickhouse/src/Processors/Formats/IOutputFormat.h
parentf82bfd2a08a51c4815a4cde64974f819ed4f7128 (diff)
downloadydb-fa9347ea5cf4447897b525032be9a711cc3dc583.tar.gz
Intermediate changes
Diffstat (limited to 'contrib/clickhouse/src/Processors/Formats/IOutputFormat.h')
-rw-r--r--contrib/clickhouse/src/Processors/Formats/IOutputFormat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/clickhouse/src/Processors/Formats/IOutputFormat.h b/contrib/clickhouse/src/Processors/Formats/IOutputFormat.h
index 58700a978f..cae2ab7691 100644
--- a/contrib/clickhouse/src/Processors/Formats/IOutputFormat.h
+++ b/contrib/clickhouse/src/Processors/Formats/IOutputFormat.h
@@ -71,6 +71,9 @@ public:
consumeExtremes(Chunk(extremes.getColumns(), extremes.rows()));
}
+ virtual bool supportsWritingException() const { return false; }
+ virtual void setException(const String & /*exception_message*/) {}
+
size_t getResultRows() const { return result_rows; }
size_t getResultBytes() const { return result_bytes; }
@@ -162,6 +165,11 @@ protected:
/// outputs them in finalize() method.
virtual bool areTotalsAndExtremesUsedInFinalize() const { return false; }
+ /// Derived classes can use some wrappers around out WriteBuffer
+ /// and can override this method to return wrapper
+ /// that should be used in its derived classes.
+ virtual WriteBuffer * getWriteBufferPtr() { return &out; }
+
WriteBuffer & out;
Chunk current_chunk;