#pragma once #include "config.h" #if USE_HIVE #include #include namespace DB { /// A stream for input data in Hive Text format. class HiveTextRowInputFormat final : public CSVRowInputFormat { public: HiveTextRowInputFormat(const Block & header_, ReadBuffer & in_, const Params & params_, const FormatSettings & format_settings_); String getName() const override { return "HiveTextRowInputFormat"; } private: HiveTextRowInputFormat( const Block & header_, std::shared_ptr buf_, const Params & params_, const FormatSettings & format_settings_); }; class HiveTextFormatReader final : public CSVFormatReader { public: HiveTextFormatReader(PeekableReadBuffer & buf_, const FormatSettings & format_settings_); std::vector readNames() override; std::vector readTypes() override; private: std::vector input_field_names; }; } #endif