diff options
Diffstat (limited to 'searchlib/src/vespa/searchcommon/attribute/basictype.cpp')
-rw-r--r-- | searchlib/src/vespa/searchcommon/attribute/basictype.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/searchlib/src/vespa/searchcommon/attribute/basictype.cpp b/searchlib/src/vespa/searchcommon/attribute/basictype.cpp index c63d07ca130..0312154690c 100644 --- a/searchlib/src/vespa/searchcommon/attribute/basictype.cpp +++ b/searchlib/src/vespa/searchcommon/attribute/basictype.cpp @@ -35,4 +35,13 @@ BasicType::asType(const vespalib::string &t) return NONE; } +bool +BasicType::is_integer_type() const noexcept +{ + return (_type == INT8) || + (_type == INT16) || + (_type == INT32) || + (_type == INT64); +} + } |