diff options
author | Arne Juul <arnej@yahoo-inc.com> | 2018-07-13 10:53:40 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahoo-inc.com> | 2018-07-13 11:06:17 +0000 |
commit | bf2d05eca835f9ac91f31862e7694232aed3137c (patch) | |
tree | 8e5c3e9f245c2c0e59ad738866488b055c562c4c /searchcommon | |
parent | da2ac54e294242821848fe4605ed927392a51c95 (diff) |
add new API
* declare new required method in attribute vector interface.
Diffstat (limited to 'searchcommon')
-rw-r--r-- | searchcommon/src/vespa/searchcommon/attribute/iattributevector.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/searchcommon/src/vespa/searchcommon/attribute/iattributevector.h b/searchcommon/src/vespa/searchcommon/attribute/iattributevector.h index c432606f7f0..08bb3153838 100644 --- a/searchcommon/src/vespa/searchcommon/attribute/iattributevector.h +++ b/searchcommon/src/vespa/searchcommon/attribute/iattributevector.h @@ -2,6 +2,7 @@ #pragma once +#include <vector> #include "collectiontype.h" #include "basictype.h" #include <vespa/searchcommon/common/iblobconverter.h> @@ -251,6 +252,16 @@ public: virtual bool findEnum(const char * value, EnumHandle & e) const = 0; /** + * Finds all enum values matching the given string value. + * This method will only have effect if @ref getBasicType() returns BasicType::STRING and + * @ref hasEnum() returns true. + * + * @param value the string value to lookup. + * @return vector of EnumHandles, size 0 if no match found. + **/ + virtual std::vector<EnumHandle> findFoldedEnums(const char * value) const = 0; + + /** * Given an enum handle, returns the string it refers to. * This method will only have effect if @ref getBasicType() returns BasicType::STRING and * @ref hasEnum() returns true. @@ -427,6 +438,6 @@ private: }; -} // namespace fef +} // namespace attribute } // namespace search |