aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoromgronny <omgronny@yandex-team.com>2024-08-08 15:39:24 +0300
committeromgronny <omgronny@yandex-team.com>2024-08-08 15:54:23 +0300
commitb3b92751c90449515e067ead980c8c719f060e72 (patch)
tree8e8483983456152590460980394cbb2a9abb9ccc
parentc6be97005c7ce5430c6e3517514459752b206708 (diff)
downloadydb-b3b92751c90449515e067ead980c8c719f060e72.tar.gz
YT-20511: Switch ordered_by_start_time table to record codegen
4ad8d3e21e611ac631e869f980b5f0da5ade1144
-rw-r--r--yt/yt/client/api/operations_archive_schema.cpp37
-rw-r--r--yt/yt/client/api/operations_archive_schema.h39
-rw-r--r--yt/yt/client/ya.make1
3 files changed, 0 insertions, 77 deletions
diff --git a/yt/yt/client/api/operations_archive_schema.cpp b/yt/yt/client/api/operations_archive_schema.cpp
deleted file mode 100644
index 38478e897b..0000000000
--- a/yt/yt/client/api/operations_archive_schema.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-#include "operations_archive_schema.h"
-
-namespace NYT::NApi {
-
-using namespace NTableClient;
-
-////////////////////////////////////////////////////////////////////////////////
-
-TOrderedByStartTimeTableDescriptor::TOrderedByStartTimeTableDescriptor()
- : NameTable(New<TNameTable>())
- , Index(NameTable)
-{ }
-
-const TOrderedByStartTimeTableDescriptor& TOrderedByStartTimeTableDescriptor::Get()
-{
- static const TOrderedByStartTimeTableDescriptor descriptor;
- return descriptor;
-}
-
-TOrderedByStartTimeTableDescriptor::TIndex::TIndex(const TNameTablePtr& nameTable)
- : StartTime(nameTable->RegisterName("start_time"))
- , IdHi(nameTable->RegisterName("id_hi"))
- , IdLo(nameTable->RegisterName("id_lo"))
- , OperationType(nameTable->RegisterName("operation_type"))
- , State(nameTable->RegisterName("state"))
- , AuthenticatedUser(nameTable->RegisterName("authenticated_user"))
- , FilterFactors(nameTable->RegisterName("filter_factors"))
- , Pool(nameTable->RegisterName("pool"))
- , Pools(nameTable->RegisterName("pools"))
- , HasFailedJobs(nameTable->RegisterName("has_failed_jobs"))
- , Acl(nameTable->RegisterName("acl"))
- , PoolTreeToPool(nameTable->RegisterName("pool_tree_to_pool"))
-{ }
-
-////////////////////////////////////////////////////////////////////////////////
-
-} // namespace NYT::NApi
diff --git a/yt/yt/client/api/operations_archive_schema.h b/yt/yt/client/api/operations_archive_schema.h
deleted file mode 100644
index 96ffb1f3c1..0000000000
--- a/yt/yt/client/api/operations_archive_schema.h
+++ /dev/null
@@ -1,39 +0,0 @@
-#pragma once
-
-#include <yt/yt/client/table_client/name_table.h>
-
-namespace NYT::NApi {
-
-////////////////////////////////////////////////////////////////////////////////
-
-struct TOrderedByStartTimeTableDescriptor
-{
- TOrderedByStartTimeTableDescriptor();
-
- static const TOrderedByStartTimeTableDescriptor& Get();
-
- struct TIndex
- {
- explicit TIndex(const NTableClient::TNameTablePtr& nameTable);
-
- const int StartTime;
- const int IdHi;
- const int IdLo;
- const int OperationType;
- const int State;
- const int AuthenticatedUser;
- const int FilterFactors;
- const int Pool;
- const int Pools;
- const int HasFailedJobs;
- const int Acl;
- const int PoolTreeToPool;
- };
-
- const NTableClient::TNameTablePtr NameTable;
- const TIndex Index;
-};
-
-////////////////////////////////////////////////////////////////////////////////
-
-} //namespace NYT::NApi
diff --git a/yt/yt/client/ya.make b/yt/yt/client/ya.make
index 1d135c9366..021717e062 100644
--- a/yt/yt/client/ya.make
+++ b/yt/yt/client/ya.make
@@ -21,7 +21,6 @@ SRCS(
api/query_tracker_client.cpp
api/helpers.cpp
api/internal_client.cpp
- api/operations_archive_schema.cpp
api/public.cpp
api/rowset.cpp
api/skynet.cpp