wgtmac commented on code in PR #85:
URL: https://github.com/apache/iceberg-cpp/pull/85#discussion_r2055223121


##########
src/iceberg/table_metadata.h:
##########
@@ -140,4 +141,29 @@ ICEBERG_EXPORT std::string ToString(const 
SnapshotLogEntry& entry);
 /// \brief Returns a string representation of a MetadataLogEntry
 ICEBERG_EXPORT std::string ToString(const MetadataLogEntry& entry);
 
+/// \brief The codec type of the table metadata file.
+ICEBERG_EXPORT enum class MetadataFileCodecType {
+  kNone,
+  kGzip,
+};
+
+/// \brief Utility class for table metadata
+struct ICEBERG_EXPORT TableMetadataUtil {
+  /// \brief Get the codec type from the table metadata file name.
+  ///
+  /// \param file_name The name of the table metadata file.
+  /// \return The codec type of the table metadata file.
+  static Result<MetadataFileCodecType> FromFileName(std::string_view 
file_name);

Review Comment:
   Make sense. Changed.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to