mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 18:32:29 +00:00
26 lines
524 B
C++
26 lines
524 B
C++
#pragma once
|
|
|
|
#include <Processors/Formats/Impl/JSONColumnsBlockInputFormatBase.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/* Format JSONColumns reads each block of data in the next format:
|
|
* {
|
|
* "name1": [value1, value2, value3, ...],
|
|
* "name2": [value1, value2m value3, ...],
|
|
* ...
|
|
* }
|
|
*/
|
|
class JSONColumnsReader : public JSONColumnsReaderBase
|
|
{
|
|
public:
|
|
JSONColumnsReader(ReadBuffer & in_);
|
|
|
|
void readChunkStart() override;
|
|
std::optional<String> readColumnStart() override;
|
|
bool checkChunkEnd() override;
|
|
};
|
|
|
|
}
|