pulkomandy commented on code in PR #44739:
URL: https://github.com/apache/arrow/pull/44739#discussion_r2177246581


##########
cpp/src/parquet/stream_writer.h:
##########
@@ -151,6 +151,23 @@ class PARQUET_EXPORT StreamWriter {
   StreamWriter& operator<<(const std::string& v);
   StreamWriter& operator<<(::std::string_view v);
 
+  /// \brief Helper class to write variable length raw data.
+  struct PARQUET_EXPORT RawDataView {
+    RawDataView() = default;
+
+    explicit RawDataView(const char* data_ptr);
+    explicit RawDataView(const std::string& data_str);
+    explicit RawDataView(const std::string_view& data_stv);
+
+    RawDataView(const char* data_ptr, std::size_t data_len);
+
+    const char* data{NULLPTR};
+    std::size_t size{0};
+  };
+
+  /// \brief Output operators for variable length raw data.

Review Comment:
   ```suggestion
     /// \brief Output operators for variable length raw data.
     ///
     /// This should be used with column type BYTE_ARRAY and converted type 
NONE,
     /// for variable length data that is not UTF-8 encoded.
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to