Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2dot5
ClickHouse
提交
7fb32971
C
ClickHouse
项目概览
2dot5
/
ClickHouse
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
ClickHouse
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
7fb32971
编写于
10月 07, 2020
作者:
M
Mikhail Filimonov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Avoid shadowing class member, set first_row flag after write
上级
f6b00f2c
变更
34
隐藏空白更改
内联
并排
Showing
34 changed file
with
52 addition
and
52 deletion
+52
-52
src/Processors/Formats/IRowOutputFormat.cpp
src/Processors/Formats/IRowOutputFormat.cpp
+1
-1
src/Processors/Formats/Impl/AvroRowOutputFormat.cpp
src/Processors/Formats/Impl/AvroRowOutputFormat.cpp
+2
-2
src/Processors/Formats/Impl/AvroRowOutputFormat.h
src/Processors/Formats/Impl/AvroRowOutputFormat.h
+1
-1
src/Processors/Formats/Impl/BinaryRowOutputFormat.cpp
src/Processors/Formats/Impl/BinaryRowOutputFormat.cpp
+2
-2
src/Processors/Formats/Impl/BinaryRowOutputFormat.h
src/Processors/Formats/Impl/BinaryRowOutputFormat.h
+1
-1
src/Processors/Formats/Impl/CSVRowOutputFormat.cpp
src/Processors/Formats/Impl/CSVRowOutputFormat.cpp
+2
-2
src/Processors/Formats/Impl/CSVRowOutputFormat.h
src/Processors/Formats/Impl/CSVRowOutputFormat.h
+1
-1
src/Processors/Formats/Impl/JSONCompactEachRowRowOutputFormat.cpp
...essors/Formats/Impl/JSONCompactEachRowRowOutputFormat.cpp
+2
-2
src/Processors/Formats/Impl/JSONCompactEachRowRowOutputFormat.h
...ocessors/Formats/Impl/JSONCompactEachRowRowOutputFormat.h
+1
-1
src/Processors/Formats/Impl/JSONCompactRowOutputFormat.cpp
src/Processors/Formats/Impl/JSONCompactRowOutputFormat.cpp
+2
-2
src/Processors/Formats/Impl/JSONCompactRowOutputFormat.h
src/Processors/Formats/Impl/JSONCompactRowOutputFormat.h
+1
-1
src/Processors/Formats/Impl/JSONEachRowRowOutputFormat.cpp
src/Processors/Formats/Impl/JSONEachRowRowOutputFormat.cpp
+2
-2
src/Processors/Formats/Impl/JSONEachRowRowOutputFormat.h
src/Processors/Formats/Impl/JSONEachRowRowOutputFormat.h
+1
-1
src/Processors/Formats/Impl/JSONRowOutputFormat.cpp
src/Processors/Formats/Impl/JSONRowOutputFormat.cpp
+2
-2
src/Processors/Formats/Impl/JSONRowOutputFormat.h
src/Processors/Formats/Impl/JSONRowOutputFormat.h
+1
-1
src/Processors/Formats/Impl/MarkdownRowOutputFormat.cpp
src/Processors/Formats/Impl/MarkdownRowOutputFormat.cpp
+2
-2
src/Processors/Formats/Impl/MarkdownRowOutputFormat.h
src/Processors/Formats/Impl/MarkdownRowOutputFormat.h
+1
-1
src/Processors/Formats/Impl/MsgPackRowOutputFormat.cpp
src/Processors/Formats/Impl/MsgPackRowOutputFormat.cpp
+2
-2
src/Processors/Formats/Impl/MsgPackRowOutputFormat.h
src/Processors/Formats/Impl/MsgPackRowOutputFormat.h
+1
-1
src/Processors/Formats/Impl/ProtobufRowOutputFormat.cpp
src/Processors/Formats/Impl/ProtobufRowOutputFormat.cpp
+3
-3
src/Processors/Formats/Impl/ProtobufRowOutputFormat.h
src/Processors/Formats/Impl/ProtobufRowOutputFormat.h
+1
-1
src/Processors/Formats/Impl/RawBLOBRowOutputFormat.cpp
src/Processors/Formats/Impl/RawBLOBRowOutputFormat.cpp
+2
-2
src/Processors/Formats/Impl/RawBLOBRowOutputFormat.h
src/Processors/Formats/Impl/RawBLOBRowOutputFormat.h
+1
-1
src/Processors/Formats/Impl/TSKVRowOutputFormat.cpp
src/Processors/Formats/Impl/TSKVRowOutputFormat.cpp
+2
-2
src/Processors/Formats/Impl/TSKVRowOutputFormat.h
src/Processors/Formats/Impl/TSKVRowOutputFormat.h
+1
-1
src/Processors/Formats/Impl/TabSeparatedRawRowOutputFormat.h
src/Processors/Formats/Impl/TabSeparatedRawRowOutputFormat.h
+2
-2
src/Processors/Formats/Impl/TabSeparatedRowOutputFormat.cpp
src/Processors/Formats/Impl/TabSeparatedRowOutputFormat.cpp
+2
-2
src/Processors/Formats/Impl/TabSeparatedRowOutputFormat.h
src/Processors/Formats/Impl/TabSeparatedRowOutputFormat.h
+1
-1
src/Processors/Formats/Impl/ValuesRowOutputFormat.cpp
src/Processors/Formats/Impl/ValuesRowOutputFormat.cpp
+2
-2
src/Processors/Formats/Impl/ValuesRowOutputFormat.h
src/Processors/Formats/Impl/ValuesRowOutputFormat.h
+1
-1
src/Processors/Formats/Impl/VerticalRowOutputFormat.cpp
src/Processors/Formats/Impl/VerticalRowOutputFormat.cpp
+2
-2
src/Processors/Formats/Impl/VerticalRowOutputFormat.h
src/Processors/Formats/Impl/VerticalRowOutputFormat.h
+1
-1
src/Processors/Formats/Impl/XMLRowOutputFormat.cpp
src/Processors/Formats/Impl/XMLRowOutputFormat.cpp
+2
-2
src/Processors/Formats/Impl/XMLRowOutputFormat.h
src/Processors/Formats/Impl/XMLRowOutputFormat.h
+1
-1
未找到文件。
src/Processors/Formats/IRowOutputFormat.cpp
浏览文件 @
7fb32971
...
@@ -21,9 +21,9 @@ void IRowOutputFormat::consume(DB::Chunk chunk)
...
@@ -21,9 +21,9 @@ void IRowOutputFormat::consume(DB::Chunk chunk)
{
{
if
(
!
first_row
)
if
(
!
first_row
)
writeRowBetweenDelimiter
();
writeRowBetweenDelimiter
();
first_row
=
false
;
write
(
columns
,
row
);
write
(
columns
,
row
);
first_row
=
false
;
if
(
params
.
callback
)
if
(
params
.
callback
)
params
.
callback
(
columns
,
row
);
params
.
callback
(
columns
,
row
);
...
...
src/Processors/Formats/Impl/AvroRowOutputFormat.cpp
浏览文件 @
7fb32971
...
@@ -347,8 +347,8 @@ static avro::Codec getCodec(const std::string & codec_name)
...
@@ -347,8 +347,8 @@ static avro::Codec getCodec(const std::string & codec_name)
}
}
AvroRowOutputFormat
::
AvroRowOutputFormat
(
AvroRowOutputFormat
::
AvroRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
,
const
FormatSettings
&
settings_
)
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
settings_
)
:
IRowOutputFormat
(
header_
,
out_
,
params
)
:
IRowOutputFormat
(
header_
,
out_
,
params
_
)
,
settings
(
settings_
)
,
settings
(
settings_
)
,
serializer
(
header_
.
getColumnsWithTypeAndName
())
,
serializer
(
header_
.
getColumnsWithTypeAndName
())
,
file_writer
(
,
file_writer
(
...
...
src/Processors/Formats/Impl/AvroRowOutputFormat.h
浏览文件 @
7fb32971
...
@@ -43,7 +43,7 @@ private:
...
@@ -43,7 +43,7 @@ private:
class
AvroRowOutputFormat
:
public
IRowOutputFormat
class
AvroRowOutputFormat
:
public
IRowOutputFormat
{
{
public:
public:
AvroRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
,
const
FormatSettings
&
settings_
);
AvroRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
settings_
);
virtual
~
AvroRowOutputFormat
()
override
;
virtual
~
AvroRowOutputFormat
()
override
;
String
getName
()
const
override
{
return
"AvroRowOutputFormat"
;
}
String
getName
()
const
override
{
return
"AvroRowOutputFormat"
;
}
...
...
src/Processors/Formats/Impl/BinaryRowOutputFormat.cpp
浏览文件 @
7fb32971
...
@@ -9,8 +9,8 @@
...
@@ -9,8 +9,8 @@
namespace
DB
namespace
DB
{
{
BinaryRowOutputFormat
::
BinaryRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header
,
bool
with_names_
,
bool
with_types_
,
const
RowOutputFormatParams
&
params
)
BinaryRowOutputFormat
::
BinaryRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header
,
bool
with_names_
,
bool
with_types_
,
const
RowOutputFormatParams
&
params
_
)
:
IRowOutputFormat
(
header
,
out_
,
params
),
with_names
(
with_names_
),
with_types
(
with_types_
)
:
IRowOutputFormat
(
header
,
out_
,
params
_
),
with_names
(
with_names_
),
with_types
(
with_types_
)
{
{
}
}
...
...
src/Processors/Formats/Impl/BinaryRowOutputFormat.h
浏览文件 @
7fb32971
...
@@ -17,7 +17,7 @@ class WriteBuffer;
...
@@ -17,7 +17,7 @@ class WriteBuffer;
class
BinaryRowOutputFormat
:
public
IRowOutputFormat
class
BinaryRowOutputFormat
:
public
IRowOutputFormat
{
{
public:
public:
BinaryRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header
,
bool
with_names_
,
bool
with_types_
,
const
RowOutputFormatParams
&
params
);
BinaryRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header
,
bool
with_names_
,
bool
with_types_
,
const
RowOutputFormatParams
&
params
_
);
String
getName
()
const
override
{
return
"BinaryRowOutputFormat"
;
}
String
getName
()
const
override
{
return
"BinaryRowOutputFormat"
;
}
...
...
src/Processors/Formats/Impl/CSVRowOutputFormat.cpp
浏览文件 @
7fb32971
...
@@ -8,8 +8,8 @@ namespace DB
...
@@ -8,8 +8,8 @@ namespace DB
{
{
CSVRowOutputFormat
::
CSVRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
bool
with_names_
,
const
RowOutputFormatParams
&
params
,
const
FormatSettings
&
format_settings_
)
CSVRowOutputFormat
::
CSVRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
bool
with_names_
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
format_settings_
)
:
IRowOutputFormat
(
header_
,
out_
,
params
),
with_names
(
with_names_
),
format_settings
(
format_settings_
)
:
IRowOutputFormat
(
header_
,
out_
,
params
_
),
with_names
(
with_names_
),
format_settings
(
format_settings_
)
{
{
const
auto
&
sample
=
getPort
(
PortKind
::
Main
).
getHeader
();
const
auto
&
sample
=
getPort
(
PortKind
::
Main
).
getHeader
();
size_t
columns
=
sample
.
columns
();
size_t
columns
=
sample
.
columns
();
...
...
src/Processors/Formats/Impl/CSVRowOutputFormat.h
浏览文件 @
7fb32971
...
@@ -20,7 +20,7 @@ public:
...
@@ -20,7 +20,7 @@ public:
/** with_names - output in the first line a header with column names
/** with_names - output in the first line a header with column names
* with_types - output in the next line header with the names of the types
* with_types - output in the next line header with the names of the types
*/
*/
CSVRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
bool
with_names_
,
const
RowOutputFormatParams
&
params
,
const
FormatSettings
&
format_settings_
);
CSVRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
bool
with_names_
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
format_settings_
);
String
getName
()
const
override
{
return
"CSVRowOutputFormat"
;
}
String
getName
()
const
override
{
return
"CSVRowOutputFormat"
;
}
...
...
src/Processors/Formats/Impl/JSONCompactEachRowRowOutputFormat.cpp
浏览文件 @
7fb32971
...
@@ -10,11 +10,11 @@ namespace DB
...
@@ -10,11 +10,11 @@ namespace DB
JSONCompactEachRowRowOutputFormat
::
JSONCompactEachRowRowOutputFormat
(
WriteBuffer
&
out_
,
JSONCompactEachRowRowOutputFormat
::
JSONCompactEachRowRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
settings_
,
const
FormatSettings
&
settings_
,
bool
with_names_
,
bool
with_names_
,
bool
yield_strings_
)
bool
yield_strings_
)
:
IRowOutputFormat
(
header_
,
out_
,
params
),
settings
(
settings_
),
with_names
(
with_names_
),
yield_strings
(
yield_strings_
)
:
IRowOutputFormat
(
header_
,
out_
,
params
_
),
settings
(
settings_
),
with_names
(
with_names_
),
yield_strings
(
yield_strings_
)
{
{
const
auto
&
sample
=
getPort
(
PortKind
::
Main
).
getHeader
();
const
auto
&
sample
=
getPort
(
PortKind
::
Main
).
getHeader
();
NamesAndTypesList
columns
(
sample
.
getNamesAndTypesList
());
NamesAndTypesList
columns
(
sample
.
getNamesAndTypesList
());
...
...
src/Processors/Formats/Impl/JSONCompactEachRowRowOutputFormat.h
浏览文件 @
7fb32971
...
@@ -18,7 +18,7 @@ public:
...
@@ -18,7 +18,7 @@ public:
JSONCompactEachRowRowOutputFormat
(
JSONCompactEachRowRowOutputFormat
(
WriteBuffer
&
out_
,
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
settings_
,
const
FormatSettings
&
settings_
,
bool
with_names_
,
bool
with_names_
,
bool
yield_strings_
);
bool
yield_strings_
);
...
...
src/Processors/Formats/Impl/JSONCompactRowOutputFormat.cpp
浏览文件 @
7fb32971
...
@@ -10,10 +10,10 @@ namespace DB
...
@@ -10,10 +10,10 @@ namespace DB
JSONCompactRowOutputFormat
::
JSONCompactRowOutputFormat
(
JSONCompactRowOutputFormat
::
JSONCompactRowOutputFormat
(
WriteBuffer
&
out_
,
WriteBuffer
&
out_
,
const
Block
&
header
,
const
Block
&
header
,
const
RowOutputFormatParams
&
params
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
settings_
,
const
FormatSettings
&
settings_
,
bool
yield_strings_
)
bool
yield_strings_
)
:
JSONRowOutputFormat
(
out_
,
header
,
params
,
settings_
,
yield_strings_
)
:
JSONRowOutputFormat
(
out_
,
header
,
params
_
,
settings_
,
yield_strings_
)
{
{
}
}
...
...
src/Processors/Formats/Impl/JSONCompactRowOutputFormat.h
浏览文件 @
7fb32971
...
@@ -19,7 +19,7 @@ public:
...
@@ -19,7 +19,7 @@ public:
JSONCompactRowOutputFormat
(
JSONCompactRowOutputFormat
(
WriteBuffer
&
out_
,
WriteBuffer
&
out_
,
const
Block
&
header
,
const
Block
&
header
,
const
RowOutputFormatParams
&
params
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
settings_
,
const
FormatSettings
&
settings_
,
bool
yield_strings_
);
bool
yield_strings_
);
...
...
src/Processors/Formats/Impl/JSONEachRowRowOutputFormat.cpp
浏览文件 @
7fb32971
...
@@ -11,10 +11,10 @@ namespace DB
...
@@ -11,10 +11,10 @@ namespace DB
JSONEachRowRowOutputFormat
::
JSONEachRowRowOutputFormat
(
JSONEachRowRowOutputFormat
::
JSONEachRowRowOutputFormat
(
WriteBuffer
&
out_
,
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
settings_
,
const
FormatSettings
&
settings_
,
bool
yield_strings_
)
bool
yield_strings_
)
:
IRowOutputFormat
(
header_
,
out_
,
params
),
settings
(
settings_
),
yield_strings
(
yield_strings_
)
:
IRowOutputFormat
(
header_
,
out_
,
params
_
),
settings
(
settings_
),
yield_strings
(
yield_strings_
)
{
{
const
auto
&
sample
=
getPort
(
PortKind
::
Main
).
getHeader
();
const
auto
&
sample
=
getPort
(
PortKind
::
Main
).
getHeader
();
size_t
columns
=
sample
.
columns
();
size_t
columns
=
sample
.
columns
();
...
...
src/Processors/Formats/Impl/JSONEachRowRowOutputFormat.h
浏览文件 @
7fb32971
...
@@ -18,7 +18,7 @@ public:
...
@@ -18,7 +18,7 @@ public:
JSONEachRowRowOutputFormat
(
JSONEachRowRowOutputFormat
(
WriteBuffer
&
out_
,
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
settings_
,
const
FormatSettings
&
settings_
,
bool
yield_strings_
);
bool
yield_strings_
);
...
...
src/Processors/Formats/Impl/JSONRowOutputFormat.cpp
浏览文件 @
7fb32971
...
@@ -10,10 +10,10 @@ namespace DB
...
@@ -10,10 +10,10 @@ namespace DB
JSONRowOutputFormat
::
JSONRowOutputFormat
(
JSONRowOutputFormat
::
JSONRowOutputFormat
(
WriteBuffer
&
out_
,
WriteBuffer
&
out_
,
const
Block
&
header
,
const
Block
&
header
,
const
RowOutputFormatParams
&
params
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
settings_
,
const
FormatSettings
&
settings_
,
bool
yield_strings_
)
bool
yield_strings_
)
:
IRowOutputFormat
(
header
,
out_
,
params
),
settings
(
settings_
),
yield_strings
(
yield_strings_
)
:
IRowOutputFormat
(
header
,
out_
,
params
_
),
settings
(
settings_
),
yield_strings
(
yield_strings_
)
{
{
const
auto
&
sample
=
getPort
(
PortKind
::
Main
).
getHeader
();
const
auto
&
sample
=
getPort
(
PortKind
::
Main
).
getHeader
();
NamesAndTypesList
columns
(
sample
.
getNamesAndTypesList
());
NamesAndTypesList
columns
(
sample
.
getNamesAndTypesList
());
...
...
src/Processors/Formats/Impl/JSONRowOutputFormat.h
浏览文件 @
7fb32971
...
@@ -19,7 +19,7 @@ public:
...
@@ -19,7 +19,7 @@ public:
JSONRowOutputFormat
(
JSONRowOutputFormat
(
WriteBuffer
&
out_
,
WriteBuffer
&
out_
,
const
Block
&
header
,
const
Block
&
header
,
const
RowOutputFormatParams
&
params
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
settings_
,
const
FormatSettings
&
settings_
,
bool
yield_strings_
);
bool
yield_strings_
);
...
...
src/Processors/Formats/Impl/MarkdownRowOutputFormat.cpp
浏览文件 @
7fb32971
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
namespace
DB
namespace
DB
{
{
MarkdownRowOutputFormat
::
MarkdownRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
,
const
FormatSettings
&
format_settings_
)
MarkdownRowOutputFormat
::
MarkdownRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
format_settings_
)
:
IRowOutputFormat
(
header_
,
out_
,
params
),
format_settings
(
format_settings_
)
{}
:
IRowOutputFormat
(
header_
,
out_
,
params
_
),
format_settings
(
format_settings_
)
{}
void
MarkdownRowOutputFormat
::
writePrefix
()
void
MarkdownRowOutputFormat
::
writePrefix
()
{
{
...
...
src/Processors/Formats/Impl/MarkdownRowOutputFormat.h
浏览文件 @
7fb32971
...
@@ -12,7 +12,7 @@ class ReadBuffer;
...
@@ -12,7 +12,7 @@ class ReadBuffer;
class
MarkdownRowOutputFormat
:
public
IRowOutputFormat
class
MarkdownRowOutputFormat
:
public
IRowOutputFormat
{
{
public:
public:
MarkdownRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
,
const
FormatSettings
&
format_settings_
);
MarkdownRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
format_settings_
);
/// Write higher part of markdown table like this:
/// Write higher part of markdown table like this:
/// |columnName1|columnName2|...|columnNameN|
/// |columnName1|columnName2|...|columnNameN|
...
...
src/Processors/Formats/Impl/MsgPackRowOutputFormat.cpp
浏览文件 @
7fb32971
...
@@ -24,8 +24,8 @@ namespace ErrorCodes
...
@@ -24,8 +24,8 @@ namespace ErrorCodes
extern
const
int
ILLEGAL_COLUMN
;
extern
const
int
ILLEGAL_COLUMN
;
}
}
MsgPackRowOutputFormat
::
MsgPackRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
)
MsgPackRowOutputFormat
::
MsgPackRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
_
)
:
IRowOutputFormat
(
header_
,
out_
,
params
),
packer
(
out_
)
{}
:
IRowOutputFormat
(
header_
,
out_
,
params
_
),
packer
(
out_
)
{}
void
MsgPackRowOutputFormat
::
serializeField
(
const
IColumn
&
column
,
DataTypePtr
data_type
,
size_t
row_num
)
void
MsgPackRowOutputFormat
::
serializeField
(
const
IColumn
&
column
,
DataTypePtr
data_type
,
size_t
row_num
)
{
{
...
...
src/Processors/Formats/Impl/MsgPackRowOutputFormat.h
浏览文件 @
7fb32971
...
@@ -20,7 +20,7 @@ namespace DB
...
@@ -20,7 +20,7 @@ namespace DB
class
MsgPackRowOutputFormat
:
public
IRowOutputFormat
class
MsgPackRowOutputFormat
:
public
IRowOutputFormat
{
{
public:
public:
MsgPackRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
);
MsgPackRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
_
);
String
getName
()
const
override
{
return
"MsgPackRowOutputFormat"
;
}
String
getName
()
const
override
{
return
"MsgPackRowOutputFormat"
;
}
...
...
src/Processors/Formats/Impl/ProtobufRowOutputFormat.cpp
浏览文件 @
7fb32971
...
@@ -21,13 +21,13 @@ namespace ErrorCodes
...
@@ -21,13 +21,13 @@ namespace ErrorCodes
ProtobufRowOutputFormat
::
ProtobufRowOutputFormat
(
ProtobufRowOutputFormat
::
ProtobufRowOutputFormat
(
WriteBuffer
&
out_
,
WriteBuffer
&
out_
,
const
Block
&
header
,
const
Block
&
header
,
const
RowOutputFormatParams
&
params
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSchemaInfo
&
format_schema
,
const
FormatSchemaInfo
&
format_schema
,
const
bool
use_length_delimiters_
)
const
bool
use_length_delimiters_
)
:
IRowOutputFormat
(
header
,
out_
,
params
)
:
IRowOutputFormat
(
header
,
out_
,
params
_
)
,
data_types
(
header
.
getDataTypes
())
,
data_types
(
header
.
getDataTypes
())
,
writer
(
out
,
ProtobufSchemas
::
instance
().
getMessageTypeForFormatSchema
(
format_schema
),
header
.
getNames
(),
use_length_delimiters_
)
,
writer
(
out
,
ProtobufSchemas
::
instance
().
getMessageTypeForFormatSchema
(
format_schema
),
header
.
getNames
(),
use_length_delimiters_
)
,
throw_on_multiple_rows_undelimited
(
!
use_length_delimiters_
&&
!
params
.
ignore_no_row_delimiter
)
,
throw_on_multiple_rows_undelimited
(
!
use_length_delimiters_
&&
!
params
_
.
ignore_no_row_delimiter
)
{
{
value_indices
.
resize
(
header
.
columns
());
value_indices
.
resize
(
header
.
columns
());
}
}
...
...
src/Processors/Formats/Impl/ProtobufRowOutputFormat.h
浏览文件 @
7fb32971
...
@@ -39,7 +39,7 @@ public:
...
@@ -39,7 +39,7 @@ public:
ProtobufRowOutputFormat
(
ProtobufRowOutputFormat
(
WriteBuffer
&
out_
,
WriteBuffer
&
out_
,
const
Block
&
header
,
const
Block
&
header
,
const
RowOutputFormatParams
&
params
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSchemaInfo
&
format_schema
,
const
FormatSchemaInfo
&
format_schema
,
const
bool
use_length_delimiters_
);
const
bool
use_length_delimiters_
);
...
...
src/Processors/Formats/Impl/RawBLOBRowOutputFormat.cpp
浏览文件 @
7fb32971
...
@@ -9,8 +9,8 @@ namespace DB
...
@@ -9,8 +9,8 @@ namespace DB
RawBLOBRowOutputFormat
::
RawBLOBRowOutputFormat
(
RawBLOBRowOutputFormat
::
RawBLOBRowOutputFormat
(
WriteBuffer
&
out_
,
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
)
const
RowOutputFormatParams
&
params
_
)
:
IRowOutputFormat
(
header_
,
out_
,
params
)
:
IRowOutputFormat
(
header_
,
out_
,
params
_
)
{
{
}
}
...
...
src/Processors/Formats/Impl/RawBLOBRowOutputFormat.h
浏览文件 @
7fb32971
...
@@ -30,7 +30,7 @@ public:
...
@@ -30,7 +30,7 @@ public:
RawBLOBRowOutputFormat
(
RawBLOBRowOutputFormat
(
WriteBuffer
&
out_
,
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
);
const
RowOutputFormatParams
&
params
_
);
String
getName
()
const
override
{
return
"RawBLOBRowOutputFormat"
;
}
String
getName
()
const
override
{
return
"RawBLOBRowOutputFormat"
;
}
...
...
src/Processors/Formats/Impl/TSKVRowOutputFormat.cpp
浏览文件 @
7fb32971
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
namespace
DB
namespace
DB
{
{
TSKVRowOutputFormat
::
TSKVRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header
,
const
RowOutputFormatParams
&
params
,
const
FormatSettings
&
format_settings_
)
TSKVRowOutputFormat
::
TSKVRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
format_settings_
)
:
TabSeparatedRowOutputFormat
(
out_
,
header
,
false
,
false
,
params
,
format_settings_
)
:
TabSeparatedRowOutputFormat
(
out_
,
header
,
false
,
false
,
params
_
,
format_settings_
)
{
{
const
auto
&
sample
=
getPort
(
PortKind
::
Main
).
getHeader
();
const
auto
&
sample
=
getPort
(
PortKind
::
Main
).
getHeader
();
NamesAndTypesList
columns
(
sample
.
getNamesAndTypesList
());
NamesAndTypesList
columns
(
sample
.
getNamesAndTypesList
());
...
...
src/Processors/Formats/Impl/TSKVRowOutputFormat.h
浏览文件 @
7fb32971
...
@@ -14,7 +14,7 @@ namespace DB
...
@@ -14,7 +14,7 @@ namespace DB
class
TSKVRowOutputFormat
:
public
TabSeparatedRowOutputFormat
class
TSKVRowOutputFormat
:
public
TabSeparatedRowOutputFormat
{
{
public:
public:
TSKVRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header
,
const
RowOutputFormatParams
&
params
,
const
FormatSettings
&
format_settings
);
TSKVRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
format_settings
);
String
getName
()
const
override
{
return
"TSKVRowOutputFormat"
;
}
String
getName
()
const
override
{
return
"TSKVRowOutputFormat"
;
}
...
...
src/Processors/Formats/Impl/TabSeparatedRawRowOutputFormat.h
浏览文件 @
7fb32971
...
@@ -18,9 +18,9 @@ public:
...
@@ -18,9 +18,9 @@ public:
const
Block
&
header_
,
const
Block
&
header_
,
bool
with_names_
,
bool
with_names_
,
bool
with_types_
,
bool
with_types_
,
const
RowOutputFormatParams
&
params
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
format_settings_
)
const
FormatSettings
&
format_settings_
)
:
TabSeparatedRowOutputFormat
(
out_
,
header_
,
with_names_
,
with_types_
,
params
,
format_settings_
)
:
TabSeparatedRowOutputFormat
(
out_
,
header_
,
with_names_
,
with_types_
,
params
_
,
format_settings_
)
{
{
}
}
...
...
src/Processors/Formats/Impl/TabSeparatedRowOutputFormat.cpp
浏览文件 @
7fb32971
...
@@ -11,9 +11,9 @@ TabSeparatedRowOutputFormat::TabSeparatedRowOutputFormat(
...
@@ -11,9 +11,9 @@ TabSeparatedRowOutputFormat::TabSeparatedRowOutputFormat(
const
Block
&
header_
,
const
Block
&
header_
,
bool
with_names_
,
bool
with_names_
,
bool
with_types_
,
bool
with_types_
,
const
RowOutputFormatParams
&
params
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
format_settings_
)
const
FormatSettings
&
format_settings_
)
:
IRowOutputFormat
(
header_
,
out_
,
params
),
with_names
(
with_names_
),
with_types
(
with_types_
),
format_settings
(
format_settings_
)
:
IRowOutputFormat
(
header_
,
out_
,
params
_
),
with_names
(
with_names_
),
with_types
(
with_types_
),
format_settings
(
format_settings_
)
{
{
}
}
...
...
src/Processors/Formats/Impl/TabSeparatedRowOutputFormat.h
浏览文件 @
7fb32971
...
@@ -23,7 +23,7 @@ public:
...
@@ -23,7 +23,7 @@ public:
const
Block
&
header_
,
const
Block
&
header_
,
bool
with_names_
,
bool
with_names_
,
bool
with_types_
,
bool
with_types_
,
const
RowOutputFormatParams
&
params
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
format_settings_
);
const
FormatSettings
&
format_settings_
);
String
getName
()
const
override
{
return
"TabSeparatedRowOutputFormat"
;
}
String
getName
()
const
override
{
return
"TabSeparatedRowOutputFormat"
;
}
...
...
src/Processors/Formats/Impl/ValuesRowOutputFormat.cpp
浏览文件 @
7fb32971
...
@@ -10,8 +10,8 @@ namespace DB
...
@@ -10,8 +10,8 @@ namespace DB
{
{
ValuesRowOutputFormat
::
ValuesRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
,
const
FormatSettings
&
format_settings_
)
ValuesRowOutputFormat
::
ValuesRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
format_settings_
)
:
IRowOutputFormat
(
header_
,
out_
,
params
),
format_settings
(
format_settings_
)
:
IRowOutputFormat
(
header_
,
out_
,
params
_
),
format_settings
(
format_settings_
)
{
{
}
}
...
...
src/Processors/Formats/Impl/ValuesRowOutputFormat.h
浏览文件 @
7fb32971
...
@@ -15,7 +15,7 @@ class WriteBuffer;
...
@@ -15,7 +15,7 @@ class WriteBuffer;
class
ValuesRowOutputFormat
:
public
IRowOutputFormat
class
ValuesRowOutputFormat
:
public
IRowOutputFormat
{
{
public:
public:
ValuesRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
,
const
FormatSettings
&
format_settings_
);
ValuesRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
format_settings_
);
String
getName
()
const
override
{
return
"ValuesRowOutputFormat"
;
}
String
getName
()
const
override
{
return
"ValuesRowOutputFormat"
;
}
...
...
src/Processors/Formats/Impl/VerticalRowOutputFormat.cpp
浏览文件 @
7fb32971
...
@@ -11,8 +11,8 @@ namespace DB
...
@@ -11,8 +11,8 @@ namespace DB
{
{
VerticalRowOutputFormat
::
VerticalRowOutputFormat
(
VerticalRowOutputFormat
::
VerticalRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
,
const
FormatSettings
&
format_settings_
)
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
format_settings_
)
:
IRowOutputFormat
(
header_
,
out_
,
params
),
format_settings
(
format_settings_
)
:
IRowOutputFormat
(
header_
,
out_
,
params
_
),
format_settings
(
format_settings_
)
{
{
const
auto
&
sample
=
getPort
(
PortKind
::
Main
).
getHeader
();
const
auto
&
sample
=
getPort
(
PortKind
::
Main
).
getHeader
();
size_t
columns
=
sample
.
columns
();
size_t
columns
=
sample
.
columns
();
...
...
src/Processors/Formats/Impl/VerticalRowOutputFormat.h
浏览文件 @
7fb32971
...
@@ -18,7 +18,7 @@ class Context;
...
@@ -18,7 +18,7 @@ class Context;
class
VerticalRowOutputFormat
:
public
IRowOutputFormat
class
VerticalRowOutputFormat
:
public
IRowOutputFormat
{
{
public:
public:
VerticalRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
,
const
FormatSettings
&
format_settings_
);
VerticalRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
format_settings_
);
String
getName
()
const
override
{
return
"VerticalRowOutputFormat"
;
}
String
getName
()
const
override
{
return
"VerticalRowOutputFormat"
;
}
...
...
src/Processors/Formats/Impl/XMLRowOutputFormat.cpp
浏览文件 @
7fb32971
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
namespace
DB
namespace
DB
{
{
XMLRowOutputFormat
::
XMLRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
,
const
FormatSettings
&
format_settings_
)
XMLRowOutputFormat
::
XMLRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
format_settings_
)
:
IRowOutputFormat
(
header_
,
out_
,
params
),
format_settings
(
format_settings_
)
:
IRowOutputFormat
(
header_
,
out_
,
params
_
),
format_settings
(
format_settings_
)
{
{
const
auto
&
sample
=
getPort
(
PortKind
::
Main
).
getHeader
();
const
auto
&
sample
=
getPort
(
PortKind
::
Main
).
getHeader
();
NamesAndTypesList
columns
(
sample
.
getNamesAndTypesList
());
NamesAndTypesList
columns
(
sample
.
getNamesAndTypesList
());
...
...
src/Processors/Formats/Impl/XMLRowOutputFormat.h
浏览文件 @
7fb32971
...
@@ -16,7 +16,7 @@ namespace DB
...
@@ -16,7 +16,7 @@ namespace DB
class
XMLRowOutputFormat
:
public
IRowOutputFormat
class
XMLRowOutputFormat
:
public
IRowOutputFormat
{
{
public:
public:
XMLRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
,
const
FormatSettings
&
format_settings_
);
XMLRowOutputFormat
(
WriteBuffer
&
out_
,
const
Block
&
header_
,
const
RowOutputFormatParams
&
params
_
,
const
FormatSettings
&
format_settings_
);
String
getName
()
const
override
{
return
"XMLRowOutputFormat"
;
}
String
getName
()
const
override
{
return
"XMLRowOutputFormat"
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录