blob: 09f2f77268d304db79b55b79e11fef3f63374220 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#pragma once
#include <Processors/Formats/Impl/JSONCompactEachRowRowInputFormat.h>
#include <Processors/Formats/ISchemaReader.h>
namespace DB
{
class JSONCompactRowInputFormat final : public RowInputFormatWithNamesAndTypes
{
public:
JSONCompactRowInputFormat(const Block & header_, ReadBuffer & in_, Params params_, const FormatSettings & format_settings_);
String getName() const override { return "JSONCompactRowInputFormat"; }
private:
bool allowSyncAfterError() const override { return true; }
void syncAfterError() override;
bool supportsCountRows() const override { return true; }
void readPrefix() override;
void readSuffix() override;
const bool validate_types_from_metadata;
};
class JSONCompactFormatReader : public JSONCompactEachRowFormatReader
{
public:
JSONCompactFormatReader(ReadBuffer & in_, const FormatSettings & format_settings_);
bool checkForSuffix() override;
};
}
|