Skip to content

Commit e6ac508

Browse files
author
shuxu.li
committed
feat: metadata access support for table
1 parent 13c411f commit e6ac508

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/iceberg/table.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,23 @@ class ICEBERG_EXPORT Table {
6161
Result<std::shared_ptr<Schema>> schema() const;
6262

6363
/// \brief Return a map of schema for this table
64+
/// \note This method is **not** thread-safe in the current implementation.
6465
const std::shared_ptr<std::unordered_map<int32_t, std::shared_ptr<Schema>>>& schemas()
6566
const;
6667

6768
/// \brief Return the partition spec for this table, return NotFoundError if not found
6869
Result<std::shared_ptr<PartitionSpec>> spec() const;
6970

7071
/// \brief Return a map of partition specs for this table
72+
/// \note This method is **not** thread-safe in the current implementation.
7173
const std::shared_ptr<std::unordered_map<int32_t, std::shared_ptr<PartitionSpec>>>&
7274
specs() const;
7375

7476
/// \brief Return the sort order for this table, return NotFoundError if not found
7577
Result<std::shared_ptr<SortOrder>> sort_order() const;
7678

7779
/// \brief Return a map of sort order IDs to sort orders for this table
80+
/// \note This method is **not** thread-safe in the current implementation.
7881
const std::shared_ptr<std::unordered_map<int32_t, std::shared_ptr<SortOrder>>>&
7982
sort_orders() const;
8083

0 commit comments

Comments
 (0)