summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-03-17 20:26:58 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-03-17 20:26:58 +0000
commit2974fb58ddc245e94f325eb6b1407c16bd6887bc (patch)
tree6c80d1d1e35151c7b460d0ecd157c91b9af09836 /searchcore
parentf5d308f5cb8bd1f5a4d7daaac18ed1aaa8e8778e (diff)
Implement className on document::FieldValue
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/common/attribute_updater.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/common/attribute_updater.cpp b/searchcore/src/vespa/searchcore/proton/common/attribute_updater.cpp
index be25a374754..5b134c65e84 100644
--- a/searchcore/src/vespa/searchcore/proton/common/attribute_updater.cpp
+++ b/searchcore/src/vespa/searchcore/proton/common/attribute_updater.cpp
@@ -24,7 +24,6 @@
#include <vespa/searchlib/attribute/reference_attribute.h>
#include <vespa/searchlib/tensor/tensor_attribute.h>
#include <vespa/vespalib/util/stringfmt.h>
-#include <vespa/vespalib/util/classname.h>
#include <sstream>
#include <vespa/log/log.h>
@@ -145,7 +144,7 @@ AttributeUpdater::handleUpdateT(V & vec, Accessor, uint32_t lid, const ValueUpda
appendValue(vec, lid, ac);
} else {
LOG(warning, "Unsupported value %s in assign operation on multivalue vector %s",
- vespalib::getClassName(fv).c_str(), vec.getName().c_str());
+ fv.className(), vec.getName().c_str());
}
}
} else if (op == ValueUpdate::Add) {
@@ -158,7 +157,7 @@ AttributeUpdater::handleUpdateT(V & vec, Accessor, uint32_t lid, const ValueUpda
const MapValueUpdate & map(static_cast<const MapValueUpdate &>(upd));
if (!vec.AttributeVector::apply(lid, map)) {
throw UpdateException(make_string("attribute map(%s, %s) failed: %s[%u]",
- vespalib::getClassName(map.getKey()).c_str(), map.getUpdate().getClass().name(),
+ map.getKey().className(), map.getUpdate().getClass().name(),
vec.getName().c_str(), lid));
}
} else {
@@ -330,7 +329,7 @@ AttributeUpdater::handleValueT(V & vec, Accessor, uint32_t lid, const FieldValue
WeightedSetAccessor<Accessor> ac(static_cast<const WeightedSetFieldValue & >(val));
appendValue(vec, lid, ac);
} else {
- LOG(warning, "Unsupported value '%s' to assign on multivalue vector '%s'", vespalib::getClassName(val).c_str(), vec.getName().c_str());
+ LOG(warning, "Unsupported value '%s' to assign on multivalue vector '%s'", val.className(), vec.getName().c_str());
}
} else {
updateValue(vec, lid, val);