diff --git a/cpp/src/arrow/adapters/orc/adapter.cc b/cpp/src/arrow/adapters/orc/adapter.cc index 14340ac285e28..576bd0dada596 100644 --- a/cpp/src/arrow/adapters/orc/adapter.cc +++ b/cpp/src/arrow/adapters/orc/adapter.cc @@ -568,6 +568,15 @@ ORCFileReader::ORCFileReader() { impl_.reset(new ORCFileReader::Impl()); } ORCFileReader::~ORCFileReader() {} +liborc::Reader* ORCFileReader::GetRawORCReader() { + return impl_->GetRawORCReader(); +} + +Status ORCFileReader::Open(const std::shared_ptr& file, + MemoryPool* pool, std::unique_ptr* reader) { + return Open(file, pool).Value(reader); +} + Result> ORCFileReader::Open( const std::shared_ptr& file, MemoryPool* pool) { #ifdef ARROW_ORC_NEED_TIME_ZONE_DATABASE_CHECK diff --git a/cpp/src/arrow/adapters/orc/adapter.h b/cpp/src/arrow/adapters/orc/adapter.h index 41f53d3474d53..6adb3be5ec5b3 100644 --- a/cpp/src/arrow/adapters/orc/adapter.h +++ b/cpp/src/arrow/adapters/orc/adapter.h @@ -30,6 +30,7 @@ #include "arrow/type_fwd.h" #include "arrow/util/macros.h" #include "arrow/util/visibility.h" +#include "arrow/adapters/orc/adapter_util.h" namespace arrow { namespace adapters {