#pragma once #include namespace NYT { namespace NDetail { //////////////////////////////////////////////////////////////////////////////// class TInputStreamProxy : public TRawTableReader { public: TInputStreamProxy(IInputStream* stream) : Stream_(stream) { } bool Retry( const TMaybe& /*rangeIndex*/, const TMaybe& /*rowIndex*/, const std::exception_ptr& /*error*/) override { return false; } void ResetRetries() override { } bool HasRangeIndices() const override { return false; } protected: size_t DoRead(void* buf, size_t len) override { return Stream_->Read(buf, len); } private: IInputStream* Stream_; }; //////////////////////////////////////////////////////////////////////////////// ::TIntrusivePtr CreateProtoReader( IInputStream* stream, const TTableReaderOptions& /* options */, const ::google::protobuf::Descriptor* descriptor); ::TIntrusivePtr CreateProtoReader( IInputStream* stream, const TTableReaderOptions& /* options */, TVector descriptors); //////////////////////////////////////////////////////////////////////////////// } // namespace NDetail template <> TTableReaderPtr CreateTableReader( IInputStream* stream, const TTableReaderOptions& options); template <> TTableReaderPtr CreateTableReader( IInputStream* stream, const TTableReaderOptions& /*options*/); } // namespace NYT