diff options
author | babenko <babenko@yandex-team.com> | 2024-04-10 09:23:00 +0300 |
---|---|---|
committer | babenko <babenko@yandex-team.com> | 2024-04-10 09:32:35 +0300 |
commit | 446c5b32bc17a4ccab35973a9b8fb25291bf731e (patch) | |
tree | 499e7b354e8cea3ebb7b8581abf03478f295bb82 /yt | |
parent | 20060e3d90d25b8098c71d85724212bffa068a2f (diff) | |
download | ydb-446c5b32bc17a4ccab35973a9b8fb25291bf731e.tar.gz |
Refactor id hashing in Sequoia tables
965a51fcb8258ba51ab6700ea18decc413a9a463
Diffstat (limited to 'yt')
-rw-r--r-- | yt/yt/client/table_client/schema.cpp | 5 | ||||
-rw-r--r-- | yt/yt/client/table_client/schema.h | 4 | ||||
-rw-r--r-- | yt/yt/client/tablet_client/table_mount_cache.h | 2 |
3 files changed, 11 insertions, 0 deletions
diff --git a/yt/yt/client/table_client/schema.cpp b/yt/yt/client/table_client/schema.cpp index 672cb8a520..26b11be183 100644 --- a/yt/yt/client/table_client/schema.cpp +++ b/yt/yt/client/table_client/schema.cpp @@ -1028,6 +1028,11 @@ TTableSchemaPtr TTableSchema::ToDelete() const return ToLookup(); } +TTableSchemaPtr TTableSchema::ToLock() const +{ + return ToLookup(); +} + TTableSchemaPtr TTableSchema::ToKeys() const { if (!ColumnInfo_) { diff --git a/yt/yt/client/table_client/schema.h b/yt/yt/client/table_client/schema.h index a556a0637d..c425f244a2 100644 --- a/yt/yt/client/table_client/schema.h +++ b/yt/yt/client/table_client/schema.h @@ -342,6 +342,10 @@ public: //! For ordered tables, returns an empty schema. TTableSchemaPtr ToDelete() const; + //! For sorted tables, returns the non-computed key columns. + //! For ordered tables, returns an empty schema. + TTableSchemaPtr ToLock() const; + //! Returns just the key columns. TTableSchemaPtr ToKeys() const; diff --git a/yt/yt/client/tablet_client/table_mount_cache.h b/yt/yt/client/tablet_client/table_mount_cache.h index f12eba4a07..d9efe1929f 100644 --- a/yt/yt/client/tablet_client/table_mount_cache.h +++ b/yt/yt/client/tablet_client/table_mount_cache.h @@ -84,6 +84,8 @@ DEFINE_ENUM(ETableSchemaKind, (VersionedWrite) // Schema used for looking up rows. (Lookup) + // Schema used for locking rows. + (Lock) // For sorted schemas, coincides with primary. // For ordered, contains an additional tablet index columns. (PrimaryWithTabletIndex) |