2828#include " arrow/ipc/options.h"
2929#include " arrow/type_fwd.h"
3030#include " arrow/util/compression.h"
31+ #include " arrow/util/macros.h"
3132#include " arrow/util/visibility.h"
3233
3334namespace arrow {
@@ -54,6 +55,9 @@ static constexpr const int kFeatherV2Version = 3;
5455
5556// / \class Reader
5657// / \brief An interface for reading columns from Feather files
58+ // /
59+ // / \note Deprecated in 25.0.0. Feather V2 is the Arrow IPC file format;
60+ // / use arrow::ipc::RecordBatchFileReader instead.
5761class ARROW_EXPORT Reader {
5862 public:
5963 virtual ~Reader () = default ;
@@ -62,6 +66,9 @@ class ARROW_EXPORT Reader {
6266 // /
6367 // / \param[in] source a RandomAccessFile instance
6468 // / \return the table reader
69+ // / \deprecated Deprecated in 25.0.0. Use arrow::ipc::RecordBatchFileReader instead.
70+ ARROW_DEPRECATED (
71+ " Deprecated in 25.0.0. Use arrow::ipc::RecordBatchFileReader instead." )
6572 static Result<std::shared_ptr<Reader>> Open (
6673 const std::shared_ptr<io::RandomAccessFile>& source);
6774
@@ -71,6 +78,9 @@ class ARROW_EXPORT Reader {
7178 // / \param[in] source a RandomAccessFile instance
7279 // / \param[in] options IPC Read options
7380 // / \return the table reader
81+ // / \deprecated Deprecated in 25.0.0. Use arrow::ipc::RecordBatchFileReader instead.
82+ ARROW_DEPRECATED (
83+ " Deprecated in 25.0.0. Use arrow::ipc::RecordBatchFileReader instead." )
7484 static Result<std::shared_ptr<Reader>> Open (
7585 const std::shared_ptr<io::RandomAccessFile>& source, const IpcReadOptions& options);
7686
@@ -107,6 +117,11 @@ class ARROW_EXPORT Reader {
107117 std::shared_ptr<Table>* out) = 0;
108118};
109119
120+ // / \struct WriteProperties
121+ // / \brief Options for writing Feather files
122+ // /
123+ // / \note Deprecated in 25.0.0. Feather V2 is the Arrow IPC file format;
124+ // / use arrow::ipc::MakeFileWriter with arrow::ipc::IpcWriteOptions instead.
110125struct ARROW_EXPORT WriteProperties {
111126 static WriteProperties Defaults ();
112127
@@ -141,6 +156,11 @@ struct ARROW_EXPORT WriteProperties {
141156 int compression_level = ::arrow::util::kUseDefaultCompressionLevel ;
142157};
143158
159+ // / \brief Write a Table to a Feather file
160+ // /
161+ // / \deprecated Deprecated in 25.0.0. Feather V2 is the Arrow IPC file format;
162+ // / use arrow::ipc::MakeFileWriter instead.
163+ ARROW_DEPRECATED (" Deprecated in 25.0.0. Use arrow::ipc::MakeFileWriter instead." )
144164ARROW_EXPORT
145165Status WriteTable (const Table& table, io::OutputStream* dst,
146166 const WriteProperties& properties = WriteProperties::Defaults());
0 commit comments