mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
41 lines
795 B
C++
41 lines
795 B
C++
#pragma once
|
|
|
|
#include "config_formats.h"
|
|
#include <DataStreams/IBlockInputStream.h>
|
|
#include <Processors/Chunk.h>
|
|
#include <Processors/Formats/IInputFormat.h>
|
|
|
|
#if USE_ORC
|
|
|
|
#include "arrow/adapters/orc/adapter.h"
|
|
#include "arrow/io/interfaces.h"
|
|
|
|
namespace DB
|
|
{
|
|
class Context;
|
|
|
|
class ORCBlockInputFormat: public IInputFormat
|
|
{
|
|
public:
|
|
ORCBlockInputFormat(ReadBuffer & in_, Block header_);
|
|
|
|
String getName() const override { return "ORCBlockInputFormat"; }
|
|
|
|
void resetParser() override;
|
|
|
|
protected:
|
|
Chunk generate() override;
|
|
|
|
private:
|
|
|
|
// TODO: check that this class implements every part of its parent
|
|
|
|
std::unique_ptr<arrow::adapters::orc::ORCFileReader> file_reader;
|
|
std::string file_data;
|
|
int row_group_total = 0;
|
|
int row_group_current = 0;
|
|
};
|
|
|
|
}
|
|
#endif
|