summaryrefslogtreecommitdiffstats
path: root/contrib/libs/apache/orc/c++/src/Reader.cc
diff options
context:
space:
mode:
authorignat <[email protected]>2024-08-06 11:45:32 +0300
committerignat <[email protected]>2024-08-06 13:06:51 +0300
commit03cdd2da9245de42a5bed37355d703f62486ec21 (patch)
treef13562aa6a86a8ec36a2aace4c9c48bb6815d75d /contrib/libs/apache/orc/c++/src/Reader.cc
parentdb9505d66cb73d62c7beaff1980941cfb1aec0ea (diff)
YT-22431: Move TProtoStringType under orc namespace
03c4c55ccebe71a295336e40c980ee2d65da4d9f
Diffstat (limited to 'contrib/libs/apache/orc/c++/src/Reader.cc')
-rw-r--r--contrib/libs/apache/orc/c++/src/Reader.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/libs/apache/orc/c++/src/Reader.cc b/contrib/libs/apache/orc/c++/src/Reader.cc
index 0586918d80f..8f96914b947 100644
--- a/contrib/libs/apache/orc/c++/src/Reader.cc
+++ b/contrib/libs/apache/orc/c++/src/Reader.cc
@@ -565,7 +565,7 @@ namespace orc {
mutableFooter->CopyFrom(*footer);
tail.set_file_length(fileLength);
tail.set_postscript_length(postscriptLength);
- TProtoStringType result;
+ TProtobufString result;
if (!tail.SerializeToString(&result)) {
throw ParseError("Failed to serialize file tail");
}
@@ -691,7 +691,7 @@ namespace orc {
std::string ReaderImpl::getMetadataValue(const std::string& key) const {
for (int i = 0; i < footer->metadata_size(); ++i) {
- if (footer->metadata(i).name() == TProtoStringType(key)) {
+ if (footer->metadata(i).name() == TProtobufString(key)) {
return footer->metadata(i).value();
}
}
@@ -741,7 +741,7 @@ namespace orc {
bool ReaderImpl::hasMetadataValue(const std::string& key) const {
for (int i = 0; i < footer->metadata_size(); ++i) {
- if (footer->metadata(i).name() == TProtoStringType(key)) {
+ if (footer->metadata(i).name() == TProtobufString(key)) {
return true;
}
}
@@ -1367,7 +1367,7 @@ namespace orc {
if (serializedFooter.length() != 0) {
// Parse the file tail from the serialized one.
proto::FileTail tail;
- if (!tail.ParseFromString(TProtoStringType(serializedFooter))) {
+ if (!tail.ParseFromString(TProtobufString(serializedFooter))) {
throw ParseError("Failed to parse the file tail from string");
}
contents->postscript = std::make_unique<proto::PostScript>(tail.postscript());