aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoromgronny <omgronny@yandex-team.com>2024-08-08 10:34:00 +0300
committeromgronny <omgronny@yandex-team.com>2024-08-08 10:49:32 +0300
commit38002867a778c33f1f7840ee64541d9e67705ce0 (patch)
tree8927632e26c1b9f3bb24b39827ee1b44c8c9d800
parent4c31ac3f80c9d4c558cffc5e0c891a4ee578b476 (diff)
downloadydb-38002867a778c33f1f7840ee64541d9e67705ce0.tar.gz
YT-20511: Switch ordered_by_id table to record codegen
aee461afbe00fbccc2e7ad0f53f33a0c9413fb5b
-rw-r--r--yt/yt/client/api/operations_archive_schema.cpp44
-rw-r--r--yt/yt/client/api/operations_archive_schema.h47
2 files changed, 0 insertions, 91 deletions
diff --git a/yt/yt/client/api/operations_archive_schema.cpp b/yt/yt/client/api/operations_archive_schema.cpp
index f1c35ee2fb..38478e897b 100644
--- a/yt/yt/client/api/operations_archive_schema.cpp
+++ b/yt/yt/client/api/operations_archive_schema.cpp
@@ -6,50 +6,6 @@ using namespace NTableClient;
////////////////////////////////////////////////////////////////////////////////
-TOrderedByIdTableDescriptor::TOrderedByIdTableDescriptor()
- : NameTable(New<TNameTable>())
- , Index(NameTable)
-{ }
-
-const TOrderedByIdTableDescriptor& TOrderedByIdTableDescriptor::Get()
-{
- static const TOrderedByIdTableDescriptor descriptor;
- return descriptor;
-}
-
-TOrderedByIdTableDescriptor::TIndex::TIndex(const TNameTablePtr& nameTable)
- : IdHash(nameTable->RegisterName("id_hash"))
- , IdHi(nameTable->RegisterName("id_hi"))
- , IdLo(nameTable->RegisterName("id_lo"))
- , State(nameTable->RegisterName("state"))
- , AuthenticatedUser(nameTable->RegisterName("authenticated_user"))
- , OperationType(nameTable->RegisterName("operation_type"))
- , Progress(nameTable->RegisterName("progress"))
- , Spec(nameTable->RegisterName("spec"))
- , BriefProgress(nameTable->RegisterName("brief_progress"))
- , BriefSpec(nameTable->RegisterName("brief_spec"))
- , StartTime(nameTable->RegisterName("start_time"))
- , FinishTime(nameTable->RegisterName("finish_time"))
- , FilterFactors(nameTable->RegisterName("filter_factors"))
- , Result(nameTable->RegisterName("result"))
- , Events(nameTable->RegisterName("events"))
- , Alerts(nameTable->RegisterName("alerts"))
- , SlotIndex(nameTable->RegisterName("slot_index"))
- , UnrecognizedSpec(nameTable->RegisterName("unrecognized_spec"))
- , FullSpec(nameTable->RegisterName("full_spec"))
- , RuntimeParameters(nameTable->RegisterName("runtime_parameters"))
- , SchedulingAttributesPerPoolTree(nameTable->RegisterName("scheduling_attributes_per_pool_tree"))
- , SlotIndexPerPoolTree(nameTable->RegisterName("slot_index_per_pool_tree"))
- , TaskNames(nameTable->RegisterName("task_names"))
- , ExperimentAssignments(nameTable->RegisterName("experiment_assignments"))
- , ExperimentAssignmentNames(nameTable->RegisterName("experiment_assignment_names"))
- , ControllerFeatures(nameTable->RegisterName("controller_features"))
- , AlertEvents(nameTable->RegisterName("alert_events"))
- , ProvidedSpec(nameTable->RegisterName("provided_spec"))
-{ }
-
-////////////////////////////////////////////////////////////////////////////////
-
TOrderedByStartTimeTableDescriptor::TOrderedByStartTimeTableDescriptor()
: NameTable(New<TNameTable>())
, Index(NameTable)
diff --git a/yt/yt/client/api/operations_archive_schema.h b/yt/yt/client/api/operations_archive_schema.h
index 39828b2946..96ffb1f3c1 100644
--- a/yt/yt/client/api/operations_archive_schema.h
+++ b/yt/yt/client/api/operations_archive_schema.h
@@ -6,53 +6,6 @@ namespace NYT::NApi {
////////////////////////////////////////////////////////////////////////////////
-struct TOrderedByIdTableDescriptor
-{
- TOrderedByIdTableDescriptor();
-
- static const TOrderedByIdTableDescriptor& Get();
-
- struct TIndex
- {
- explicit TIndex(const NTableClient::TNameTablePtr& nameTable);
-
- const int IdHash;
- const int IdHi;
- const int IdLo;
- const int State;
- const int AuthenticatedUser;
- const int OperationType;
- const int Progress;
- const int Spec;
- const int BriefProgress;
- const int BriefSpec;
- const int StartTime;
- const int FinishTime;
- const int FilterFactors;
- const int Result;
- const int Events;
- const int Alerts;
- const int SlotIndex; // TODO(renadeen): delete this column when version with this comment will be on every cluster
- const int UnrecognizedSpec;
- const int FullSpec;
- const int RuntimeParameters;
- const int SchedulingAttributesPerPoolTree;
- // COMPAT(omgronny)
- const int SlotIndexPerPoolTree;
- const int TaskNames;
- const int ExperimentAssignments;
- const int ExperimentAssignmentNames;
- const int ControllerFeatures;
- const int AlertEvents;
- const int ProvidedSpec;
- };
-
- const NTableClient::TNameTablePtr NameTable;
- const TIndex Index;
-};
-
-////////////////////////////////////////////////////////////////////////////////
-
struct TOrderedByStartTimeTableDescriptor
{
TOrderedByStartTimeTableDescriptor();