aboutsummaryrefslogtreecommitdiffstats
path: root/searchcommon
diff options
context:
space:
mode:
authorGeir Storli <geirst@verizonmedia.com>2019-08-16 13:45:52 +0000
committerGeir Storli <geirst@verizonmedia.com>2019-08-19 07:38:03 +0000
commitd84b3bb9537eac5b0b0e2bb09061ae3d700d7199 (patch)
tree97fd1611e8adb6ffbee3426a147438482e7e38ba /searchcommon
parentc3ece362865b788a6fb9a86718cb34ec9af609aa (diff)
Remove "enable enumerated save" flag from attribute vectors as this should be always on.
For production code this has been on for several years already.
Diffstat (limited to 'searchcommon')
-rw-r--r--searchcommon/src/vespa/searchcommon/attribute/iattributevector.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/searchcommon/src/vespa/searchcommon/attribute/iattributevector.h b/searchcommon/src/vespa/searchcommon/attribute/iattributevector.h
index 6dbf311ef82..71319d782f1 100644
--- a/searchcommon/src/vespa/searchcommon/attribute/iattributevector.h
+++ b/searchcommon/src/vespa/searchcommon/attribute/iattributevector.h
@@ -5,6 +5,7 @@
#include "collectiontype.h"
#include "basictype.h"
#include <vespa/searchcommon/common/iblobconverter.h>
+#include <ostream>
#include <vector>
namespace search {
@@ -48,6 +49,14 @@ public:
}
};
+template <typename T>
+std::ostream&
+operator<<(std::ostream& os, const WeightedType<T>& value)
+{
+ os << "{" << value.value() << "," << value.weight() << "}";
+ return os;
+}
+
/**
* This is a read interface used to access the content of an attribute vector.
**/