diff options
author | cherepashka <cherepashka@yandex-team.com> | 2025-03-06 01:26:29 +0300 |
---|---|---|
committer | cherepashka <cherepashka@yandex-team.com> | 2025-03-06 01:55:54 +0300 |
commit | 16867b871a3abf548c504976fb8ca49c882b1ffd (patch) | |
tree | 697481902ad3f992fc84b77e827db444a7f7ff40 /library/cpp | |
parent | aa3749c1aaa8d692dfd08cefe82ff5eb29c5418f (diff) | |
download | ydb-16867b871a3abf548c504976fb8ca49c882b1ffd.tar.gz |
YT-21910: Master compact table schema
- Changelog entry
Type: feature
Component: master
Introduce TCompactTableSchema, that holds wire protobuf schema representation and lighter than TTableSchema
commit_hash:21801854b37fc25c5004ee01e5b79a3b3b6ea983
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/yt/misc/property.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/library/cpp/yt/misc/property.h b/library/cpp/yt/misc/property.h index 3c42693ef3..722e7cb2b8 100644 --- a/library/cpp/yt/misc/property.h +++ b/library/cpp/yt/misc/property.h @@ -175,6 +175,19 @@ public: \ } \ static_assert(true) +//! Defines a trivial public read-only boolean property that is passed by value. +//! All arguments after name are used as default value (via braced-init-list). +#define DEFINE_BYVAL_RO_BOOLEAN_PROPERTY(name, ...) \ +protected: \ + bool name##_ { __VA_ARGS__ }; \ + \ +public: \ + Y_FORCE_INLINE bool Is##name() const \ + { \ + return name##_; \ + } \ + static_assert(true) + //! Defines a trivial public read-write property that is passed by value. //! All arguments after name are used as default value (via braced-init-list). #define DEFINE_BYVAL_RW_PROPERTY_WITH_FLUENT_SETTER(declaringType, type, name, ...) \ |