Repository URL to install this package:
|
Version:
2.7.6 ▾
|
snowflake-connector-python
/
src
/
snowflake
/
connector
/
cpp
/
ArrowIterator
/
StringConverter.hpp
|
|---|
//
// Copyright (c) 2012-2021 Snowflake Computing Inc. All rights reserved.
//
#ifndef PC_STRINGCONVERTER_HPP
#define PC_STRINGCONVERTER_HPP
#include "IColumnConverter.hpp"
#include "logging.hpp"
#include <memory>
namespace sf
{
class StringConverter : public IColumnConverter
{
public:
explicit StringConverter(std::shared_ptr<arrow::Array> array);
PyObject* toPyObject(int64_t rowIndex) const override;
private:
std::shared_ptr<arrow::StringArray> m_array;
static Logger* logger;
};
} // namespace sf
#endif // PC_STRINGCONVERTER_HPP