aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkvk1920 <kvk1920@yandex-team.com>2024-07-10 13:48:09 +0300
committerkvk1920 <kvk1920@yandex-team.com>2024-07-10 13:58:47 +0300
commit9c3ec69ac7b4737a3a5eaa00f8541aeb98b56872 (patch)
tree14298afc04f89918021696841648b9b46303f9a8
parent4665fe89c77e887284145072ac2cadefada81305 (diff)
downloadydb-9c3ec69ac7b4737a3a5eaa00f8541aeb98b56872.tar.gz
Cypress proxy: reorganize helpers
d11046aacbf70f30c62666326d586b52f5b93829
-rw-r--r--yt/yt/client/object_client/helpers.cpp5
-rw-r--r--yt/yt/client/object_client/helpers.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/yt/yt/client/object_client/helpers.cpp b/yt/yt/client/object_client/helpers.cpp
index 257f5e36edb..db49c3d9f58 100644
--- a/yt/yt/client/object_client/helpers.cpp
+++ b/yt/yt/client/object_client/helpers.cpp
@@ -290,6 +290,11 @@ bool IsCompositeNodeType(EObjectType type)
return type == EObjectType::MapNode || type == EObjectType::ListNode;
}
+bool IsLinkType(EObjectType type)
+{
+ return type == EObjectType::Link || type == EObjectType::SequoiaLink;
+}
+
bool HasSchema(EObjectType type)
{
if (type == EObjectType::Master) {
diff --git a/yt/yt/client/object_client/helpers.h b/yt/yt/client/object_client/helpers.h
index 68dde3d1ccb..997d6fc3377 100644
--- a/yt/yt/client/object_client/helpers.h
+++ b/yt/yt/client/object_client/helpers.h
@@ -81,6 +81,9 @@ bool IsUploadTransactionType(EObjectType type);
//! Checks if node with the given type can contain other nodes.
bool IsCompositeNodeType(EObjectType type);
+//! Checks if the given type is either Link or SequoiaLink.
+bool IsLinkType(EObjectType);
+
//! Extracts the type component from #id.
EObjectType TypeFromId(TObjectId id);