aboutsummaryrefslogtreecommitdiffstats
path: root/yt
diff options
context:
space:
mode:
authorbabenko <babenko@yandex-team.com>2025-01-11 21:14:04 +0300
committerbabenko <babenko@yandex-team.com>2025-01-11 21:28:00 +0300
commit4f4c1325f996d43c055f75ae04c3fb1d88efa87f (patch)
tree2c5685bc5ab7a627c17424877a32e5ad9b9f97d3 /yt
parent65e07a4680ac991775ac49efe729e9ce859269ef (diff)
downloadydb-4f4c1325f996d43c055f75ae04c3fb1d88efa87f.tar.gz
NPhoenix2 -> NPhoenix
commit_hash:6e13e1c539e767c63b974dc3af69c1e1c830d58d
Diffstat (limited to 'yt')
-rw-r--r--yt/yt/client/chunk_client/chunk_replica.h6
-rw-r--r--yt/yt/client/table_client/serialize.cpp2
-rw-r--r--yt/yt/client/table_client/serialize.h6
-rw-r--r--yt/yt/client/table_client/table_upload_options.cpp4
-rw-r--r--yt/yt/client/table_client/table_upload_options.h4
-rw-r--r--yt/yt/core/logging/logger_owner.h6
-rw-r--r--yt/yt/core/misc/digest.cpp2
-rw-r--r--yt/yt/core/misc/digest.h6
-rw-r--r--yt/yt/core/misc/histogram.cpp2
-rw-r--r--yt/yt/core/misc/histogram.h2
-rw-r--r--yt/yt/core/misc/serialize-inl.h8
-rw-r--r--yt/yt/core/phoenix/concepts.h8
-rw-r--r--yt/yt/core/phoenix/context-inl.h4
-rw-r--r--yt/yt/core/phoenix/context.cpp4
-rw-r--r--yt/yt/core/phoenix/context.h4
-rw-r--r--yt/yt/core/phoenix/descriptors-inl.h4
-rw-r--r--yt/yt/core/phoenix/descriptors.cpp4
-rw-r--r--yt/yt/core/phoenix/descriptors.h4
-rw-r--r--yt/yt/core/phoenix/factory.h4
-rw-r--r--yt/yt/core/phoenix/load.cpp4
-rw-r--r--yt/yt/core/phoenix/load.h4
-rw-r--r--yt/yt/core/phoenix/polymorphic-inl.h4
-rw-r--r--yt/yt/core/phoenix/polymorphic.h4
-rw-r--r--yt/yt/core/phoenix/private.h4
-rw-r--r--yt/yt/core/phoenix/public.h4
-rw-r--r--yt/yt/core/phoenix/schemas.cpp4
-rw-r--r--yt/yt/core/phoenix/schemas.h4
-rw-r--r--yt/yt/core/phoenix/type_decl-inl.h32
-rw-r--r--yt/yt/core/phoenix/type_decl.h4
-rw-r--r--yt/yt/core/phoenix/type_def-inl.h34
-rw-r--r--yt/yt/core/phoenix/type_def.cpp6
-rw-r--r--yt/yt/core/phoenix/type_def.h4
-rw-r--r--yt/yt/core/phoenix/type_registry.cpp4
-rw-r--r--yt/yt/core/phoenix/type_registry.h4
-rw-r--r--yt/yt/core/phoenix/unittests/phoenix_ut.cpp8
-rw-r--r--yt/yt/core/phoenix/yson_decl-inl.h6
-rw-r--r--yt/yt/core/phoenix/yson_decl.h4
-rw-r--r--yt/yt/core/phoenix/yson_def-inl.h8
-rw-r--r--yt/yt/core/phoenix/yson_def.h4
-rw-r--r--yt/yt/core/profiling/unittests/timer_ut.cpp2
40 files changed, 118 insertions, 118 deletions
diff --git a/yt/yt/client/chunk_client/chunk_replica.h b/yt/yt/client/chunk_client/chunk_replica.h
index 8d6a29f061..1dd06a4b2e 100644
--- a/yt/yt/client/chunk_client/chunk_replica.h
+++ b/yt/yt/client/chunk_client/chunk_replica.h
@@ -127,9 +127,9 @@ private:
friend void ToProto(ui32* value, TChunkReplica replica);
friend void FromProto(TChunkReplica* replica, ui32 value);
- using TLoadContext = NPhoenix2::TLoadContext;
- using TSaveContext = NPhoenix2::TSaveContext;
- using TPersistenceContext = NPhoenix2::TPersistenceContext;
+ using TLoadContext = NPhoenix::TLoadContext;
+ using TSaveContext = NPhoenix::TSaveContext;
+ using TPersistenceContext = NPhoenix::TPersistenceContext;
PHOENIX_DECLARE_TYPE(TChunkReplica, 0x004d1b8a);
};
diff --git a/yt/yt/client/table_client/serialize.cpp b/yt/yt/client/table_client/serialize.cpp
index 12315f8928..5f9ca0d24d 100644
--- a/yt/yt/client/table_client/serialize.cpp
+++ b/yt/yt/client/table_client/serialize.cpp
@@ -7,7 +7,7 @@ namespace NYT::NTableClient {
TLoadContext::TLoadContext(
IZeroCopyInput* input,
TRowBufferPtr rowBuffer)
- : NPhoenix2::TLoadContext(input)
+ : NPhoenix::TLoadContext(input)
, RowBuffer_(std::move(rowBuffer))
{ }
diff --git a/yt/yt/client/table_client/serialize.h b/yt/yt/client/table_client/serialize.h
index bcb83bcf75..7c325e0bf4 100644
--- a/yt/yt/client/table_client/serialize.h
+++ b/yt/yt/client/table_client/serialize.h
@@ -11,16 +11,16 @@ namespace NYT::NTableClient {
////////////////////////////////////////////////////////////////////////////////
class TSaveContext
- : public NPhoenix2::TSaveContext
+ : public NPhoenix::TSaveContext
{
public:
- using NPhoenix2::TSaveContext::TSaveContext;
+ using NPhoenix::TSaveContext::TSaveContext;
};
////////////////////////////////////////////////////////////////////////////////
class TLoadContext
- : public NPhoenix2::TLoadContext
+ : public NPhoenix::TLoadContext
{
public:
DEFINE_BYVAL_RO_PROPERTY(TRowBufferPtr, RowBuffer);
diff --git a/yt/yt/client/table_client/table_upload_options.cpp b/yt/yt/client/table_client/table_upload_options.cpp
index ba09c3fcfc..3908a272da 100644
--- a/yt/yt/client/table_client/table_upload_options.cpp
+++ b/yt/yt/client/table_client/table_upload_options.cpp
@@ -61,7 +61,7 @@ ui64 TEpochSchema::Set(const TTableSchemaPtr& schema)
return ++Revision_;
}
-void TEpochSchema::Persist(const NPhoenix2::TPersistenceContext& context)
+void TEpochSchema::Persist(const NPhoenix::TPersistenceContext& context)
{
using NYT::Persist;
@@ -91,7 +91,7 @@ TTableSchemaPtr TTableUploadOptions::GetUploadSchema() const
}
}
-void TTableUploadOptions::Persist(const NPhoenix2::TPersistenceContext& context)
+void TTableUploadOptions::Persist(const NPhoenix::TPersistenceContext& context)
{
using NYT::Persist;
diff --git a/yt/yt/client/table_client/table_upload_options.h b/yt/yt/client/table_client/table_upload_options.h
index 74ea519213..1adc0a98d3 100644
--- a/yt/yt/client/table_client/table_upload_options.h
+++ b/yt/yt/client/table_client/table_upload_options.h
@@ -39,7 +39,7 @@ public:
ui64 Set(const TTableSchemaPtr& schema);
- void Persist(const NPhoenix2::TPersistenceContext& context);
+ void Persist(const NPhoenix::TPersistenceContext& context);
ui64 Reset();
@@ -67,7 +67,7 @@ struct TTableUploadOptions
TTableSchemaPtr GetUploadSchema() const;
- void Persist(const NPhoenix2::TPersistenceContext& context);
+ void Persist(const NPhoenix::TPersistenceContext& context);
};
const std::vector<TString>& GetTableUploadOptionsAttributeKeys();
diff --git a/yt/yt/core/logging/logger_owner.h b/yt/yt/core/logging/logger_owner.h
index 68d7d7583b..833cbd1817 100644
--- a/yt/yt/core/logging/logger_owner.h
+++ b/yt/yt/core/logging/logger_owner.h
@@ -8,9 +8,9 @@
namespace NYT::NLogging {
-using NPhoenix2::TLoadContext;
-using NPhoenix2::TSaveContext;
-using NPhoenix2::TPersistenceContext;
+using NPhoenix::TLoadContext;
+using NPhoenix::TSaveContext;
+using NPhoenix::TPersistenceContext;
////////////////////////////////////////////////////////////////////////////////
diff --git a/yt/yt/core/misc/digest.cpp b/yt/yt/core/misc/digest.cpp
index 71b9eb9a0e..3146085d52 100644
--- a/yt/yt/core/misc/digest.cpp
+++ b/yt/yt/core/misc/digest.cpp
@@ -5,7 +5,7 @@
namespace NYT {
-using namespace NPhoenix2;
+using namespace NPhoenix;
////////////////////////////////////////////////////////////////////////////////
diff --git a/yt/yt/core/misc/digest.h b/yt/yt/core/misc/digest.h
index fed29d666d..30114e4b33 100644
--- a/yt/yt/core/misc/digest.h
+++ b/yt/yt/core/misc/digest.h
@@ -32,10 +32,10 @@ DEFINE_REFCOUNTED_TYPE(IDigest)
struct IPersistentDigest
: public IDigest
- , public NPhoenix2::IPersistent
+ , public NPhoenix::IPersistent
{
- using TLoadContext = NPhoenix2::TLoadContext;
- using TSaveContext = NPhoenix2::TSaveContext;
+ using TLoadContext = NPhoenix::TLoadContext;
+ using TSaveContext = NPhoenix::TSaveContext;
PHOENIX_DECLARE_POLYMORPHIC_TYPE(IPersistentDigest, 0x1ed99609);
};
diff --git a/yt/yt/core/misc/histogram.cpp b/yt/yt/core/misc/histogram.cpp
index 72c4d0035d..2f979ea2c9 100644
--- a/yt/yt/core/misc/histogram.cpp
+++ b/yt/yt/core/misc/histogram.cpp
@@ -11,7 +11,7 @@ namespace NYT {
using namespace NYTree;
using namespace NYson;
-using namespace NPhoenix2;
+using namespace NPhoenix;
////////////////////////////////////////////////////////////////////////////////
diff --git a/yt/yt/core/misc/histogram.h b/yt/yt/core/misc/histogram.h
index f361573724..27891320e4 100644
--- a/yt/yt/core/misc/histogram.h
+++ b/yt/yt/core/misc/histogram.h
@@ -21,7 +21,7 @@ struct THistogramView
};
struct IHistogram
- : public virtual NPhoenix2::IPersistent
+ : public virtual NPhoenix::IPersistent
{
virtual void AddValue(i64 value, i64 count = 1) = 0;
virtual void RemoveValue(i64 value, i64 count = 1) = 0;
diff --git a/yt/yt/core/misc/serialize-inl.h b/yt/yt/core/misc/serialize-inl.h
index 2bb6dff9a5..d3e35f563c 100644
--- a/yt/yt/core/misc/serialize-inl.h
+++ b/yt/yt/core/misc/serialize-inl.h
@@ -515,7 +515,7 @@ struct TValueBoundSerializer
{ };
template <class T, class C>
- requires (NPhoenix2::SupportsPhoenix2<T> || !NPhoenix2::SupportsPersist<T, C>)
+ requires (NPhoenix::SupportsPhoenix<T> || !NPhoenix::SupportsPersist<T, C>)
struct TSaver<
T,
C,
@@ -529,7 +529,7 @@ struct TValueBoundSerializer
};
template <class T, class C>
- requires (NPhoenix2::SupportsPhoenix2<T> || !NPhoenix2::SupportsPersist<T, C>)
+ requires (NPhoenix::SupportsPhoenix<T> || !NPhoenix::SupportsPersist<T, C>)
struct TLoader<
T,
C,
@@ -542,7 +542,7 @@ struct TValueBoundSerializer
};
template <class T, class C>
- requires (!NPhoenix2::SupportsPhoenix2<T>)
+ requires (!NPhoenix::SupportsPhoenix<T>)
struct TSaver<
T,
C,
@@ -555,7 +555,7 @@ struct TValueBoundSerializer
};
template <class T, class C>
- requires (!NPhoenix2::SupportsPhoenix2<T>)
+ requires (!NPhoenix::SupportsPhoenix<T>)
struct TLoader<
T,
C,
diff --git a/yt/yt/core/phoenix/concepts.h b/yt/yt/core/phoenix/concepts.h
index 44e9334b63..e9e51bfe5b 100644
--- a/yt/yt/core/phoenix/concepts.h
+++ b/yt/yt/core/phoenix/concepts.h
@@ -2,7 +2,7 @@
#include "public.h"
-namespace NYT::NPhoenix2 {
+namespace NYT::NPhoenix {
////////////////////////////////////////////////////////////////////////////////
@@ -12,11 +12,11 @@ concept SupportsPersist = requires(T* value, TContext& context) {
};
template<typename T>
-concept SupportsPhoenix2 = std::same_as<typename T::TPhoenix2SupportTag, T>;
+concept SupportsPhoenix = std::same_as<typename T::TPhoenixSupportTag, T>;
template<typename T>
-concept DerivedFromPhoenix2 = std::derived_from<T, typename T::TPhoenix2SupportTag>;
+concept DerivedFromPhoenix = std::derived_from<T, typename T::TPhoenixSupportTag>;
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2
+} // namespace NYT::NPhoenix
diff --git a/yt/yt/core/phoenix/context-inl.h b/yt/yt/core/phoenix/context-inl.h
index de2e5c4a3d..ff114f58d2 100644
--- a/yt/yt/core/phoenix/context-inl.h
+++ b/yt/yt/core/phoenix/context-inl.h
@@ -4,7 +4,7 @@
#include "context.h"
#endif
-namespace NYT::NPhoenix2 {
+namespace NYT::NPhoenix {
////////////////////////////////////////////////////////////////////////////////
@@ -18,5 +18,5 @@ void TLoadContext::RegisterConstructedObject(T* ptr)
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2
+} // namespace NYT::NPhoenix
diff --git a/yt/yt/core/phoenix/context.cpp b/yt/yt/core/phoenix/context.cpp
index 631860c84a..3de0059f82 100644
--- a/yt/yt/core/phoenix/context.cpp
+++ b/yt/yt/core/phoenix/context.cpp
@@ -2,7 +2,7 @@
#include <yt/yt/core/misc/collection_helpers.h>
-namespace NYT::NPhoenix2 {
+namespace NYT::NPhoenix {
////////////////////////////////////////////////////////////////////////////////
@@ -58,4 +58,4 @@ void* TLoadContext::GetObject(TObjectId id) const
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2
+} // namespace NYT::NPhoenix
diff --git a/yt/yt/core/phoenix/context.h b/yt/yt/core/phoenix/context.h
index d4cadf0950..e7d0338ea3 100644
--- a/yt/yt/core/phoenix/context.h
+++ b/yt/yt/core/phoenix/context.h
@@ -6,7 +6,7 @@
#include <yt/yt/core/misc/serialize.h>
#include <yt/yt/core/misc/id_generator.h>
-namespace NYT::NPhoenix2 {
+namespace NYT::NPhoenix {
////////////////////////////////////////////////////////////////////////////////
@@ -85,7 +85,7 @@ using TPersistenceContext = TCustomPersistenceContext<TSaveContext, TLoadContext
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2
+} // namespace NYT::NPhoenix
#define CONTEXT_INL_H_
#include "context-inl.h"
diff --git a/yt/yt/core/phoenix/descriptors-inl.h b/yt/yt/core/phoenix/descriptors-inl.h
index 0b489d4751..7475654fa4 100644
--- a/yt/yt/core/phoenix/descriptors-inl.h
+++ b/yt/yt/core/phoenix/descriptors-inl.h
@@ -8,7 +8,7 @@
#include <yt/yt/core/misc/error.h>
-namespace NYT::NPhoenix2 {
+namespace NYT::NPhoenix {
////////////////////////////////////////////////////////////////////////////////
@@ -35,4 +35,4 @@ T* TTypeDescriptor::ConstructOrThrow() const
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2
+} // namespace NYT::NPhoenix
diff --git a/yt/yt/core/phoenix/descriptors.cpp b/yt/yt/core/phoenix/descriptors.cpp
index 414ad637f1..d3a113a877 100644
--- a/yt/yt/core/phoenix/descriptors.cpp
+++ b/yt/yt/core/phoenix/descriptors.cpp
@@ -2,7 +2,7 @@
#include "schemas.h"
-namespace NYT::NPhoenix2 {
+namespace NYT::NPhoenix {
using namespace NYson;
@@ -156,5 +156,5 @@ const TTypeDescriptor& TUniverseDescriptor::GetTypeDescriptorByTypeIndexOrThrow(
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2
+} // namespace NYT::NPhoenix
diff --git a/yt/yt/core/phoenix/descriptors.h b/yt/yt/core/phoenix/descriptors.h
index 38c4e644eb..0a217f6092 100644
--- a/yt/yt/core/phoenix/descriptors.h
+++ b/yt/yt/core/phoenix/descriptors.h
@@ -8,7 +8,7 @@
#include <mutex>
-namespace NYT::NPhoenix2 {
+namespace NYT::NPhoenix {
////////////////////////////////////////////////////////////////////////////////
@@ -111,7 +111,7 @@ private:
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2
+} // namespace NYT::NPhoenix
#define DESCRIPTORS_INL_H_
#include "descriptors-inl.h"
diff --git a/yt/yt/core/phoenix/factory.h b/yt/yt/core/phoenix/factory.h
index 1a23395c95..f96d4edd70 100644
--- a/yt/yt/core/phoenix/factory.h
+++ b/yt/yt/core/phoenix/factory.h
@@ -8,7 +8,7 @@
#include <concepts>
-namespace NYT::NPhoenix2::NDetail {
+namespace NYT::NPhoenix::NDetail {
////////////////////////////////////////////////////////////////////////////////
@@ -89,4 +89,4 @@ struct TFactoryTraits<T>
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2::NDetail
+} // namespace NYT::NPhoenix::NDetail
diff --git a/yt/yt/core/phoenix/load.cpp b/yt/yt/core/phoenix/load.cpp
index 42e3d43217..75f6e9b417 100644
--- a/yt/yt/core/phoenix/load.cpp
+++ b/yt/yt/core/phoenix/load.cpp
@@ -6,7 +6,7 @@
#include <library/cpp/iterator/zip.h>
-namespace NYT::NPhoenix2 {
+namespace NYT::NPhoenix {
using namespace NYson;
@@ -153,4 +153,4 @@ TLoadSessionGuard::~TLoadSessionGuard()
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2
+} // namespace NYT::NPhoenix
diff --git a/yt/yt/core/phoenix/load.h b/yt/yt/core/phoenix/load.h
index 4455bc4df8..6dea0fbc23 100644
--- a/yt/yt/core/phoenix/load.h
+++ b/yt/yt/core/phoenix/load.h
@@ -2,7 +2,7 @@
#include "public.h"
-namespace NYT::NPhoenix2 {
+namespace NYT::NPhoenix {
////////////////////////////////////////////////////////////////////////////////
@@ -19,4 +19,4 @@ public:
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2
+} // namespace NYT::NPhoenix
diff --git a/yt/yt/core/phoenix/polymorphic-inl.h b/yt/yt/core/phoenix/polymorphic-inl.h
index e60dc19c4d..fb6afceaef 100644
--- a/yt/yt/core/phoenix/polymorphic-inl.h
+++ b/yt/yt/core/phoenix/polymorphic-inl.h
@@ -6,7 +6,7 @@
#include <concepts>
-namespace NYT::NPhoenix2::NDetail {
+namespace NYT::NPhoenix::NDetail {
////////////////////////////////////////////////////////////////////////////////
@@ -27,4 +27,4 @@ struct TPolymorphicTraits<T>
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2::NDetail
+} // namespace NYT::NPhoenix::NDetail
diff --git a/yt/yt/core/phoenix/polymorphic.h b/yt/yt/core/phoenix/polymorphic.h
index 1acbe73cfb..318f414933 100644
--- a/yt/yt/core/phoenix/polymorphic.h
+++ b/yt/yt/core/phoenix/polymorphic.h
@@ -1,6 +1,6 @@
#pragma once
-namespace NYT::NPhoenix2 {
+namespace NYT::NPhoenix {
////////////////////////////////////////////////////////////////////////////////
@@ -19,7 +19,7 @@ struct TPolymorphicBase
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2
+} // namespace NYT::NPhoenix
#define POLYMORPHIC_INL_H_
#include "polymorphic-inl.h"
diff --git a/yt/yt/core/phoenix/private.h b/yt/yt/core/phoenix/private.h
index 0696474f5c..20cccb9e9b 100644
--- a/yt/yt/core/phoenix/private.h
+++ b/yt/yt/core/phoenix/private.h
@@ -6,7 +6,7 @@
#include <library/cpp/yt/misc/global.h>
-namespace NYT::NPhoenix2 {
+namespace NYT::NPhoenix {
////////////////////////////////////////////////////////////////////////////////
@@ -20,5 +20,5 @@ constexpr auto NullObjectId = TObjectId(0x00000000);
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2
+} // namespace NYT::NPhoenix
diff --git a/yt/yt/core/phoenix/public.h b/yt/yt/core/phoenix/public.h
index c8ea7ce526..2b598a19e1 100644
--- a/yt/yt/core/phoenix/public.h
+++ b/yt/yt/core/phoenix/public.h
@@ -4,7 +4,7 @@
#include <library/cpp/yt/misc/strong_typedef.h>
-namespace NYT::NPhoenix2 {
+namespace NYT::NPhoenix {
////////////////////////////////////////////////////////////////////////////////
@@ -32,5 +32,5 @@ YT_DEFINE_STRONG_TYPEDEF(TFieldTag, ui32);
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2
+} // namespace NYT::NPhoenix
diff --git a/yt/yt/core/phoenix/schemas.cpp b/yt/yt/core/phoenix/schemas.cpp
index f5e6c119cd..e1311c40a3 100644
--- a/yt/yt/core/phoenix/schemas.cpp
+++ b/yt/yt/core/phoenix/schemas.cpp
@@ -1,6 +1,6 @@
#include "schemas.h"
-namespace NYT::NPhoenix2 {
+namespace NYT::NPhoenix {
using namespace NYTree;
@@ -35,5 +35,5 @@ void TUniverseSchema::Register(TRegistrar registrar)
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2
+} // namespace NYT::NPhoenix
diff --git a/yt/yt/core/phoenix/schemas.h b/yt/yt/core/phoenix/schemas.h
index 7de235b18c..03711d75bd 100644
--- a/yt/yt/core/phoenix/schemas.h
+++ b/yt/yt/core/phoenix/schemas.h
@@ -4,7 +4,7 @@
#include <yt/yt/core/ytree/yson_struct.h>
-namespace NYT::NPhoenix2 {
+namespace NYT::NPhoenix {
////////////////////////////////////////////////////////////////////////////////
@@ -52,4 +52,4 @@ DEFINE_REFCOUNTED_TYPE(TUniverseSchema);
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2
+} // namespace NYT::NPhoenix
diff --git a/yt/yt/core/phoenix/type_decl-inl.h b/yt/yt/core/phoenix/type_decl-inl.h
index e5db38c330..095b3a328d 100644
--- a/yt/yt/core/phoenix/type_decl-inl.h
+++ b/yt/yt/core/phoenix/type_decl-inl.h
@@ -4,7 +4,7 @@
#include "type_decl.h"
#endif
-namespace NYT::NPhoenix2::NDetail {
+namespace NYT::NPhoenix::NDetail {
////////////////////////////////////////////////////////////////////////////////
@@ -40,7 +40,7 @@ struct TTraits;
#define PHOENIX_DECLARE_TYPE__PROLOGUE(type, typeTagValue) \
public: \
- [[maybe_unused]] static constexpr auto TypeTag = ::NYT::NPhoenix2::TTypeTag(typeTagValue); \
+ [[maybe_unused]] static constexpr auto TypeTag = ::NYT::NPhoenix::TTypeTag(typeTagValue); \
static void RegisterMetadata(auto&& registrar); \
\
private: \
@@ -48,20 +48,20 @@ private: \
using TLoadContextImpl = TLoadContext; \
\
template <class TThis, class TContext> \
- friend std::unique_ptr<::NYT::NPhoenix2::NDetail::TRuntimeTypeLoadSchedule<TThis, TContext>> NYT::NPhoenix2::NDetail::BuildRuntimeTypeLoadSchedule( \
- const ::NYT::NPhoenix2::NDetail::TTypeLoadSchedule* schedule); \
+ friend std::unique_ptr<::NYT::NPhoenix::NDetail::TRuntimeTypeLoadSchedule<TThis, TContext>> NYT::NPhoenix::NDetail::BuildRuntimeTypeLoadSchedule( \
+ const ::NYT::NPhoenix::NDetail::TTypeLoadSchedule* schedule); \
template <class TThis> \
- friend struct ::NYT::NPhoenix2::NDetail::TTraits
+ friend struct ::NYT::NPhoenix::NDetail::TTraits
#define PHOENIX_DECLARE_TYPE__IMPL(type, typeTagValue, saveLoadModifier) \
PHOENIX_DECLARE_TYPE__PROLOGUE(type, typeTagValue); \
public: \
- static const ::NYT::NPhoenix2::TTypeDescriptor& GetTypeDescriptor(); \
+ static const ::NYT::NPhoenix::TTypeDescriptor& GetTypeDescriptor(); \
void Save(TSaveContext& context) const saveLoadModifier; \
void Load(TLoadContext& context) saveLoadModifier; \
\
private: \
- static const ::NYT::NPhoenix2::NDetail::TRuntimeFieldDescriptorMap<type, TLoadContext>& GetRuntimeFieldDescriptorMap()
+ static const ::NYT::NPhoenix::NDetail::TRuntimeFieldDescriptorMap<type, TLoadContext>& GetRuntimeFieldDescriptorMap()
#define PHOENIX_DECLARE_FRIEND() \
template <class T> \
@@ -77,26 +77,26 @@ private: \
PHOENIX_DECLARE_TYPE__PROLOGUE(type, typeTag); \
\
public: \
- static const ::NYT::NPhoenix2::TTypeDescriptor& GetTypeDescriptor() \
+ static const ::NYT::NPhoenix::TTypeDescriptor& GetTypeDescriptor() \
{ \
- static const auto& descriptor = ::NYT::NPhoenix2::ITypeRegistry::Get()->GetUniverseDescriptor().GetTypeDescriptorByTag(TypeTag); \
+ static const auto& descriptor = ::NYT::NPhoenix::ITypeRegistry::Get()->GetUniverseDescriptor().GetTypeDescriptorByTag(TypeTag); \
return descriptor; \
} \
\
- static const ::NYT::NPhoenix2::NDetail::TRuntimeFieldDescriptorMap<type, TLoadContext>& GetRuntimeFieldDescriptorMap() \
+ static const ::NYT::NPhoenix::NDetail::TRuntimeFieldDescriptorMap<type, TLoadContext>& GetRuntimeFieldDescriptorMap() \
{ \
- static const auto map = ::NYT::NPhoenix2::NDetail::BuildRuntimeFieldDescriptorMap<TThis, TLoadContext>(); \
+ static const auto map = ::NYT::NPhoenix::NDetail::BuildRuntimeFieldDescriptorMap<TThis, TLoadContext>(); \
return map; \
} \
\
void Save(TSaveContext& context) const saveLoadModifier \
{ \
- ::NYT::NPhoenix2::NDetail::SaveImpl(this, context); \
+ ::NYT::NPhoenix::NDetail::SaveImpl(this, context); \
} \
\
void Load(TLoadContext& context) saveLoadModifier \
{ \
- ::NYT::NPhoenix2::NDetail::LoadImpl(this, context); \
+ ::NYT::NPhoenix::NDetail::LoadImpl(this, context); \
}
#define PHOENIX_DECLARE_TEMPLATE_TYPE(type, typeTag) \
@@ -107,8 +107,8 @@ public: \
#define PHOENIX_DECLARE_OPAQUE_TYPE(type, typeTagValue) \
public: \
- [[maybe_unused]] static constexpr auto TypeTag = ::NYT::NPhoenix2::TTypeTag(typeTagValue); \
- static const ::NYT::NPhoenix2::TTypeDescriptor& GetTypeDescriptor()
+ [[maybe_unused]] static constexpr auto TypeTag = ::NYT::NPhoenix::TTypeTag(typeTagValue); \
+ static const ::NYT::NPhoenix::TTypeDescriptor& GetTypeDescriptor()
#define PHOENIX_INHERIT_POLYMORPHIC_TYPE(baseType, type, tag) \
class type \
@@ -134,4 +134,4 @@ private: \
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2::NDetail
+} // namespace NYT::NPhoenix::NDetail
diff --git a/yt/yt/core/phoenix/type_decl.h b/yt/yt/core/phoenix/type_decl.h
index e3bdbc897a..4ef6671783 100644
--- a/yt/yt/core/phoenix/type_decl.h
+++ b/yt/yt/core/phoenix/type_decl.h
@@ -2,7 +2,7 @@
#include "public.h"
-namespace NYT::NPhoenix2 {
+namespace NYT::NPhoenix {
////////////////////////////////////////////////////////////////////////////////
@@ -60,7 +60,7 @@ namespace NYT::NPhoenix2 {
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2
+} // namespace NYT::NPhoenix
#define TYPE_DECL_INL_H_
#include "type_decl-inl.h"
diff --git a/yt/yt/core/phoenix/type_def-inl.h b/yt/yt/core/phoenix/type_def-inl.h
index c8bc0cfc7f..229832b71a 100644
--- a/yt/yt/core/phoenix/type_def-inl.h
+++ b/yt/yt/core/phoenix/type_def-inl.h
@@ -17,7 +17,7 @@
#include <concepts>
-namespace NYT::NPhoenix2::NDetail {
+namespace NYT::NPhoenix::NDetail {
////////////////////////////////////////////////////////////////////////////////
@@ -29,26 +29,26 @@ namespace NYT::NPhoenix2::NDetail {
////////////////////////////////////////////////////////////////////////////////
#define PHOENIX_DEFINE_TYPE(type) \
- const ::NYT::NPhoenix2::TTypeDescriptor& type::GetTypeDescriptor() \
+ const ::NYT::NPhoenix::TTypeDescriptor& type::GetTypeDescriptor() \
{ \
- static const auto& descriptor = ::NYT::NPhoenix2::ITypeRegistry::Get()->GetUniverseDescriptor().GetTypeDescriptorByTag(TypeTag); \
+ static const auto& descriptor = ::NYT::NPhoenix::ITypeRegistry::Get()->GetUniverseDescriptor().GetTypeDescriptorByTag(TypeTag); \
return descriptor; \
} \
\
- auto type::GetRuntimeFieldDescriptorMap() -> const ::NYT::NPhoenix2::NDetail::TRuntimeFieldDescriptorMap<type, TLoadContext>& \
+ auto type::GetRuntimeFieldDescriptorMap() -> const ::NYT::NPhoenix::NDetail::TRuntimeFieldDescriptorMap<type, TLoadContext>& \
{ \
- static const auto map = ::NYT::NPhoenix2::NDetail::BuildRuntimeFieldDescriptorMap<TThis, TLoadContext>(); \
+ static const auto map = ::NYT::NPhoenix::NDetail::BuildRuntimeFieldDescriptorMap<TThis, TLoadContext>(); \
return map; \
} \
\
void type::Save(TSaveContext& context) const \
{ \
- ::NYT::NPhoenix2::NDetail::SaveImpl(this, context); \
+ ::NYT::NPhoenix::NDetail::SaveImpl(this, context); \
} \
\
void type::Load(TLoadContext& context) \
{ \
- ::NYT::NPhoenix2::NDetail::LoadImpl(this, context); \
+ ::NYT::NPhoenix::NDetail::LoadImpl(this, context); \
} \
\
template <class T> \
@@ -57,7 +57,7 @@ namespace NYT::NPhoenix2::NDetail {
template <> \
struct TPhoenixTypeInitializer__<type> \
{ \
- YT_STATIC_INITIALIZER(::NYT::NPhoenix2::NDetail::RegisterTypeDescriptorImpl<type, false>()); \
+ YT_STATIC_INITIALIZER(::NYT::NPhoenix::NDetail::RegisterTypeDescriptorImpl<type, false>()); \
}
#define PHOENIX_DEFINE_TEMPLATE_TYPE(type, typeArgs) \
@@ -67,13 +67,13 @@ namespace NYT::NPhoenix2::NDetail {
template <> \
struct TPhoenixTypeInitializer__<type<PP_DEPAREN(typeArgs)>> \
{ \
- YT_STATIC_INITIALIZER(::NYT::NPhoenix2::NDetail::RegisterTypeDescriptorImpl<type<PP_DEPAREN(typeArgs)>, true>()); \
+ YT_STATIC_INITIALIZER(::NYT::NPhoenix::NDetail::RegisterTypeDescriptorImpl<type<PP_DEPAREN(typeArgs)>, true>()); \
}
#define PHOENIX_DEFINE_OPAQUE_TYPE(type) \
- const ::NYT::NPhoenix2::TTypeDescriptor& type::GetTypeDescriptor() \
+ const ::NYT::NPhoenix::TTypeDescriptor& type::GetTypeDescriptor() \
{ \
- static const auto& descriptor = ::NYT::NPhoenix2::ITypeRegistry::Get()->GetUniverseDescriptor().GetTypeDescriptorByTag(TypeTag); \
+ static const auto& descriptor = ::NYT::NPhoenix::ITypeRegistry::Get()->GetUniverseDescriptor().GetTypeDescriptorByTag(TypeTag); \
return descriptor; \
} \
\
@@ -83,7 +83,7 @@ namespace NYT::NPhoenix2::NDetail {
template <> \
struct TPhoenixTypeInitializer__<type> \
{ \
- YT_STATIC_INITIALIZER(::NYT::NPhoenix2::NDetail::RegisterOpaqueTypeDescriptorImpl<type>()); \
+ YT_STATIC_INITIALIZER(::NYT::NPhoenix::NDetail::RegisterOpaqueTypeDescriptorImpl<type>()); \
}
#define PHOENIX_REGISTER_FIELD(fieldTag, fieldName, ...) \
@@ -757,7 +757,7 @@ template <auto Member, class TThis, class TContext, class TFieldSerializer>
class PHOENIX_REGISTRAR_NODISCARD TRuntimeFieldDescriptorBuilderRegistar
{
public:
- using TRuntimeFieldDescriptor = NPhoenix2::NDetail::TRuntimeFieldDescriptor<TThis, TContext>;
+ using TRuntimeFieldDescriptor = NPhoenix::NDetail::TRuntimeFieldDescriptor<TThis, TContext>;
explicit TRuntimeFieldDescriptorBuilderRegistar(TRuntimeFieldDescriptor* descriptor)
: Descriptor_(descriptor)
@@ -813,7 +813,7 @@ template <class TThis, class TContext>
class TRuntimeVirtualFieldDescriptorBuilderRegistar
{
public:
- using TRuntimeFieldDescriptor = NPhoenix2::NDetail::TRuntimeFieldDescriptor<TThis, TContext>;
+ using TRuntimeFieldDescriptor = NPhoenix::NDetail::TRuntimeFieldDescriptor<TThis, TContext>;
TRuntimeVirtualFieldDescriptorBuilderRegistar(TRuntimeFieldDescriptor* descriptor)
: Descriptor_(descriptor)
@@ -1186,21 +1186,21 @@ struct TSerializer
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2::NDetail
+} // namespace NYT::NPhoenix::NDetail
namespace NYT {
////////////////////////////////////////////////////////////////////////////////
template <class T, class C>
- requires (std::derived_from<C, NPhoenix2::NDetail::TContextBase>) && (
+ requires (std::derived_from<C, NPhoenix::NDetail::TContextBase>) && (
std::same_as<T, TIntrusivePtr<typename T::TUnderlying>> ||
std::same_as<T, std::unique_ptr<typename T::element_type>> ||
std::is_pointer_v<T> ||
std::same_as<T, TWeakPtr<typename T::TUnderlying>>)
struct TSerializerTraits<T, C>
{
- using TSerializer = NPhoenix2::NDetail::TSerializer;
+ using TSerializer = NPhoenix::NDetail::TSerializer;
};
////////////////////////////////////////////////////////////////////////////////
diff --git a/yt/yt/core/phoenix/type_def.cpp b/yt/yt/core/phoenix/type_def.cpp
index c551ceb201..4e832d73fb 100644
--- a/yt/yt/core/phoenix/type_def.cpp
+++ b/yt/yt/core/phoenix/type_def.cpp
@@ -1,6 +1,6 @@
#include "type_def.h"
-namespace NYT::NPhoenix2::NDetail {
+namespace NYT::NPhoenix::NDetail {
////////////////////////////////////////////////////////////////////////////////
@@ -22,7 +22,7 @@ TTypeSchemaBuilderRegistar::TTypeSchemaBuilderRegistar(
const TTypeDescriptor& TTypeSchemaBuilderRegistar::operator()() &&
{
const auto& result = *TypeDescriptor_;
- ::NYT::NPhoenix2::ITypeRegistry::Get()->RegisterTypeDescriptor(std::move(TypeDescriptor_));
+ ::NYT::NPhoenix::ITypeRegistry::Get()->RegisterTypeDescriptor(std::move(TypeDescriptor_));
return result;
}
@@ -32,4 +32,4 @@ NConcurrency::TFlsSlot<TUniverseLoadState> UniverseLoadState;
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2::NDetail
+} // namespace NYT::NPhoenix::NDetail
diff --git a/yt/yt/core/phoenix/type_def.h b/yt/yt/core/phoenix/type_def.h
index f5576bfe6e..05a4fefbbb 100644
--- a/yt/yt/core/phoenix/type_def.h
+++ b/yt/yt/core/phoenix/type_def.h
@@ -2,7 +2,7 @@
#include "public.h"
-namespace NYT::NPhoenix2 {
+namespace NYT::NPhoenix {
////////////////////////////////////////////////////////////////////////////////
@@ -33,7 +33,7 @@ struct _
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2
+} // namespace NYT::NPhoenix
#define TYPE_DEF_INL_H_
#include "type_def-inl.h"
diff --git a/yt/yt/core/phoenix/type_registry.cpp b/yt/yt/core/phoenix/type_registry.cpp
index 11c1ca2f26..878a4c442a 100644
--- a/yt/yt/core/phoenix/type_registry.cpp
+++ b/yt/yt/core/phoenix/type_registry.cpp
@@ -8,7 +8,7 @@
#include <util/system/type_name.h>
-namespace NYT::NPhoenix2 {
+namespace NYT::NPhoenix {
////////////////////////////////////////////////////////////////////////////////
@@ -99,5 +99,5 @@ ITypeRegistry* ITypeRegistry::Get()
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2
+} // namespace NYT::NPhoenix
diff --git a/yt/yt/core/phoenix/type_registry.h b/yt/yt/core/phoenix/type_registry.h
index 9b25a42b0e..2b1aae8bfd 100644
--- a/yt/yt/core/phoenix/type_registry.h
+++ b/yt/yt/core/phoenix/type_registry.h
@@ -2,7 +2,7 @@
#include "descriptors.h"
-namespace NYT::NPhoenix2 {
+namespace NYT::NPhoenix {
////////////////////////////////////////////////////////////////////////////////
@@ -16,4 +16,4 @@ struct ITypeRegistry
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2
+} // namespace NYT::NPhoenix
diff --git a/yt/yt/core/phoenix/unittests/phoenix_ut.cpp b/yt/yt/core/phoenix/unittests/phoenix_ut.cpp
index 8ff17aec4e..97792ea4b7 100644
--- a/yt/yt/core/phoenix/unittests/phoenix_ut.cpp
+++ b/yt/yt/core/phoenix/unittests/phoenix_ut.cpp
@@ -13,7 +13,7 @@
#include <library/cpp/testing/gtest_extensions/assertions.h>
-namespace NYT::NPhoenix2 {
+namespace NYT::NPhoenix {
namespace {
using namespace NYson;
@@ -65,7 +65,7 @@ void InplaceDeserialize(const TIntrusivePtr<T>& value, const TString& buffer, in
TLoadContext context(&input);
context.SetVersion(version);
context.Dumper().SetEnabled(true);
- NPhoenix2::NDetail::TSerializer::InplaceLoad(context, value);
+ NPhoenix::NDetail::TSerializer::InplaceLoad(context, value);
}
////////////////////////////////////////////////////////////////////////////////
@@ -211,7 +211,7 @@ PHOENIX_DEFINE_TYPE(TConcreteStruct);
struct TRefCountedAbstractStruct
: public TRefCounted
- , public NPhoenix2::IPersistent
+ , public NPhoenix::IPersistent
{
virtual void Foo() = 0;
@@ -1885,4 +1885,4 @@ TEST(TPhoenixTest, SeveralSpecializationsOfOneTemplate)
////////////////////////////////////////////////////////////////////////////////
} // namespace
-} // namespace NYT::NPhoenix2
+} // namespace NYT::NPhoenix
diff --git a/yt/yt/core/phoenix/yson_decl-inl.h b/yt/yt/core/phoenix/yson_decl-inl.h
index c55e3c6e7a..05ef8623eb 100644
--- a/yt/yt/core/phoenix/yson_decl-inl.h
+++ b/yt/yt/core/phoenix/yson_decl-inl.h
@@ -6,7 +6,7 @@
#include <library/cpp/yt/yson/public.h>
-namespace NYT::NPhoenix2 {
+namespace NYT::NPhoenix {
////////////////////////////////////////////////////////////////////////////////
@@ -24,7 +24,7 @@ class TYsonSerializeBaseTypesRegistrar;
#define PHOENIX_DECLARE_YSON_DUMPABLE_MIXIN__PROLOGUE(type) \
private: \
template <class TThis> \
- friend class ::NYT::NPhoenix2::NDetail::TYsonSerializeBaseTypesRegistrar
+ friend class ::NYT::NPhoenix::NDetail::TYsonSerializeBaseTypesRegistrar
#define PHOENIX_DECLARE_YSON_DUMPABLE_MIXIN(type) \
PHOENIX_DECLARE_YSON_DUMPABLE_MIXIN__PROLOGUE(type); \
@@ -36,4 +36,4 @@ private: \
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2
+} // namespace NYT::NPhoenix
diff --git a/yt/yt/core/phoenix/yson_decl.h b/yt/yt/core/phoenix/yson_decl.h
index f56c2cb812..b2049bdb2f 100644
--- a/yt/yt/core/phoenix/yson_decl.h
+++ b/yt/yt/core/phoenix/yson_decl.h
@@ -2,7 +2,7 @@
#include "public.h"
-namespace NYT::NPhoenix2 {
+namespace NYT::NPhoenix {
////////////////////////////////////////////////////////////////////////////////
@@ -19,7 +19,7 @@ namespace NYT::NPhoenix2 {
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2
+} // namespace NYT::NPhoenix
#define YSON_DECL_INL_H_
#include "yson_decl-inl.h"
diff --git a/yt/yt/core/phoenix/yson_def-inl.h b/yt/yt/core/phoenix/yson_def-inl.h
index 52534ed467..8db1b56ced 100644
--- a/yt/yt/core/phoenix/yson_def-inl.h
+++ b/yt/yt/core/phoenix/yson_def-inl.h
@@ -27,7 +27,7 @@
\
void type::YsonSerializeFields(::NYT::NYson::IYsonConsumer* consumer) const \
{ \
- ::NYT::NPhoenix2::NDetail::YsonSerializeFieldsImpl(this, consumer); \
+ ::NYT::NPhoenix::NDetail::YsonSerializeFieldsImpl(this, consumer); \
}
#define PHOENIX_DECLARE_YSON_DUMPABLE_TEMPLATE_MIXIN(type) \
@@ -43,12 +43,12 @@ public: \
private: \
void YsonSerializeFields(::NYT::NYson::IYsonConsumer* consumer) const \
{ \
- ::NYT::NPhoenix2::NDetail::YsonSerializeFieldsImpl(this, consumer); \
+ ::NYT::NPhoenix::NDetail::YsonSerializeFieldsImpl(this, consumer); \
}
////////////////////////////////////////////////////////////////////////////////
-namespace NYT::NPhoenix2::NDetail {
+namespace NYT::NPhoenix::NDetail {
////////////////////////////////////////////////////////////////////////////////
@@ -106,4 +106,4 @@ void YsonSerializeFieldsImpl(const TThis* this_, NYson::IYsonConsumer* consumer)
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2::NDetail
+} // namespace NYT::NPhoenix::NDetail
diff --git a/yt/yt/core/phoenix/yson_def.h b/yt/yt/core/phoenix/yson_def.h
index 6571625371..81127ca8aa 100644
--- a/yt/yt/core/phoenix/yson_def.h
+++ b/yt/yt/core/phoenix/yson_def.h
@@ -2,7 +2,7 @@
#include "public.h"
-namespace NYT::NPhoenix2 {
+namespace NYT::NPhoenix {
////////////////////////////////////////////////////////////////////////////////
@@ -20,7 +20,7 @@ namespace NYT::NPhoenix2 {
////////////////////////////////////////////////////////////////////////////////
-} // namespace NYT::NPhoenix2
+} // namespace NYT::NPhoenix
#define YSON_DEF_INL_H_
#include "yson_def-inl.h"
diff --git a/yt/yt/core/profiling/unittests/timer_ut.cpp b/yt/yt/core/profiling/unittests/timer_ut.cpp
index c1cce5c44d..d8b71b12f3 100644
--- a/yt/yt/core/profiling/unittests/timer_ut.cpp
+++ b/yt/yt/core/profiling/unittests/timer_ut.cpp
@@ -15,7 +15,7 @@ namespace NYT::NProfiling {
namespace {
using namespace NConcurrency;
-using namespace NPhoenix2;
+using namespace NPhoenix;
////////////////////////////////////////////////////////////////////////////////