File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
cpp/src/arrow/adapters/orc Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,11 @@ class ORCFileReader::Impl {
199199 return Init ();
200200 }
201201
202+ virtual liborc::Reader* GetRawORCReader () {
203+ return reader_.get ();
204+ }
205+
206+
202207 Status Init () {
203208 int64_t nstripes = reader_->getNumberOfStripes ();
204209 stripes_.resize (nstripes);
@@ -439,6 +444,10 @@ class ORCFileReader::Impl {
439444 return Status::OK ();
440445 }
441446
447+ liborc::Reader* ORCFileReader::GetRawORCReader () {
448+ return impl_->GetRawORCReader ();
449+ }
450+
442451 Status NextStripeReader (int64_t batch_size, std::shared_ptr<RecordBatchReader>* out) {
443452 return NextStripeReader (batch_size, {}, out);
444453 }
Original file line number Diff line number Diff line change @@ -49,6 +49,9 @@ class ARROW_EXPORT ORCFileReader {
4949 ARROW_DEPRECATED (" Deprecated in 6.0.0. Use Result-returning overload instead." )
5050 static Status Open (const std::shared_ptr<io::RandomAccessFile>& file, MemoryPool* pool,
5151 std::unique_ptr<ORCFileReader>* reader);
52+
53+ // / \brief Get ORC reader from inside.
54+ liborc::Reader* GetRawORCReader ();
5255
5356 // / \brief Creates a new ORC reader
5457 // /
You can’t perform that action at this time.
0 commit comments