Skip to content

Commit 0b2a934

Browse files
committed
rename to CodecFromFileName
1 parent 096cd4c commit 0b2a934

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/iceberg/table_metadata.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ bool operator==(const TableMetadata& lhs, const TableMetadata& rhs) {
130130
lhs.next_row_id == rhs.next_row_id;
131131
}
132132

133-
Result<MetadataFileCodecType> TableMetadataUtil::FromFileName(
133+
Result<MetadataFileCodecType> TableMetadataUtil::CodecFromFileName(
134134
std::string_view file_name) {
135135
if (file_name.find(".metadata.json") == std::string::npos) {
136136
return InvalidArgument("{} is not a valid metadata file", file_name);
@@ -151,7 +151,7 @@ Result<MetadataFileCodecType> TableMetadataUtil::FromFileName(
151151

152152
Result<std::unique_ptr<TableMetadata>> TableMetadataUtil::Read(
153153
FileIO& io, const std::string& location, std::optional<size_t> length) {
154-
ICEBERG_ASSIGN_OR_RAISE(auto codec_type, FromFileName(location));
154+
ICEBERG_ASSIGN_OR_RAISE(auto codec_type, CodecFromFileName(location));
155155
if (codec_type == MetadataFileCodecType::kGzip) {
156156
return NotImplemented("Reading gzip-compressed metadata files is not supported yet");
157157
}

src/iceberg/table_metadata.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ struct ICEBERG_EXPORT TableMetadataUtil {
159159
///
160160
/// \param file_name The name of the table metadata file.
161161
/// \return The codec type of the table metadata file.
162-
static Result<MetadataFileCodecType> FromFileName(std::string_view file_name);
162+
static Result<MetadataFileCodecType> CodecFromFileName(std::string_view file_name);
163163

164164
/// \brief Read the table metadata file.
165165
///

0 commit comments

Comments
 (0)