mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 14:11:58 +00:00
fafecb3c25
* Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development): removed very old tests #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447
33 lines
555 B
C++
33 lines
555 B
C++
#pragma once
|
|
|
|
#include <Formats/IRowOutputStream.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class IColumn;
|
|
class IDataType;
|
|
class WriteBuffer;
|
|
|
|
|
|
/** A stream for outputting data in a binary line-by-line format.
|
|
*/
|
|
class BinaryRowOutputStream : public IRowOutputStream
|
|
{
|
|
public:
|
|
BinaryRowOutputStream(WriteBuffer & ostr_);
|
|
|
|
void writeField(const IColumn & column, const IDataType & type, size_t row_num) override;
|
|
|
|
void flush() override;
|
|
|
|
String getContentType() const override { return "application/octet-stream"; }
|
|
|
|
protected:
|
|
WriteBuffer & ostr;
|
|
};
|
|
|
|
}
|
|
|