aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yson/node/node_io.cpp
diff options
context:
space:
mode:
authornadya73 <nadya73@yandex-team.ru>2022-02-10 16:49:18 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:18 +0300
commitb6e35c760e81fe851ac4da1abc08e6ec8e779c10 (patch)
treebffcb657a262b70deabd6a12cf65b823c9332150 /library/cpp/yson/node/node_io.cpp
parentcb691264f012c552bac85a9fe352baa062cd81dd (diff)
downloadydb-b6e35c760e81fe851ac4da1abc08e6ec8e779c10.tar.gz
Restoring authorship annotation for <nadya73@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yson/node/node_io.cpp')
-rw-r--r--library/cpp/yson/node/node_io.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/library/cpp/yson/node/node_io.cpp b/library/cpp/yson/node/node_io.cpp
index 294a7f7217..6d581f9b81 100644
--- a/library/cpp/yson/node/node_io.cpp
+++ b/library/cpp/yson/node/node_io.cpp
@@ -66,14 +66,14 @@ static void WalkJsonTree(const NJson::TJsonValue& jsonValue, NJson::TJsonCallbac
Y_UNREACHABLE();
}
-static TNode CreateEmptyNodeByType(::NYson::EYsonType type)
+static TNode CreateEmptyNodeByType(::NYson::EYsonType type)
{
TNode result;
switch (type) {
- case ::NYson::EYsonType::ListFragment:
+ case ::NYson::EYsonType::ListFragment:
result = TNode::CreateList();
break;
- case ::NYson::EYsonType::MapFragment:
+ case ::NYson::EYsonType::MapFragment:
result = TNode::CreateMap();
break;
default:
@@ -82,46 +82,46 @@ static TNode CreateEmptyNodeByType(::NYson::EYsonType type)
return result;
}
-TNode NodeFromYsonString(const TStringBuf input, ::NYson::EYsonType type)
+TNode NodeFromYsonString(const TStringBuf input, ::NYson::EYsonType type)
{
TMemoryInput stream(input);
return NodeFromYsonStream(&stream, type);
}
-TString NodeToYsonString(const TNode& node, NYson::EYsonFormat format)
+TString NodeToYsonString(const TNode& node, NYson::EYsonFormat format)
{
TStringStream stream;
NodeToYsonStream(node, &stream, format);
return stream.Str();
}
-TString NodeToCanonicalYsonString(const TNode& node, NYson::EYsonFormat format)
+TString NodeToCanonicalYsonString(const TNode& node, NYson::EYsonFormat format)
{
TStringStream stream;
NodeToCanonicalYsonStream(node, &stream, format);
return stream.Str();
}
-TNode NodeFromYsonStream(IInputStream* input, ::NYson::EYsonType type)
+TNode NodeFromYsonStream(IInputStream* input, ::NYson::EYsonType type)
{
TNode result = CreateEmptyNodeByType(type);
TNodeBuilder builder(&result);
- ::NYson::TYsonParser parser(&builder, input, type);
+ ::NYson::TYsonParser parser(&builder, input, type);
parser.Parse();
return result;
}
-void NodeToYsonStream(const TNode& node, IOutputStream* output, NYson::EYsonFormat format)
+void NodeToYsonStream(const TNode& node, IOutputStream* output, NYson::EYsonFormat format)
{
- ::NYson::TYsonWriter writer(output, format);
+ ::NYson::TYsonWriter writer(output, format);
TNodeVisitor visitor(&writer);
visitor.Visit(node);
}
-void NodeToCanonicalYsonStream(const TNode& node, IOutputStream* output, NYson::EYsonFormat format)
+void NodeToCanonicalYsonStream(const TNode& node, IOutputStream* output, NYson::EYsonFormat format)
{
- ::NYson::TYsonWriter writer(output, format);
+ ::NYson::TYsonWriter writer(output, format);
TNodeVisitor visitor(&writer, /*sortMapKeys*/ true);
visitor.Visit(node);
}