summaryrefslogtreecommitdiffstats
path: root/searchcommon
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@yahoo-inc.com>2017-02-02 14:11:31 +0000
committerTor Egge <Tor.Egge@yahoo-inc.com>2017-02-02 14:50:50 +0000
commit9d79427593beec8a7bfb1609be7379c7924853d3 (patch)
treef8ecb52a0034eb18686cd756beebc8e2c34970f9 /searchcommon
parentc42033757432562d303f59b76be3ed43efd26939 (diff)
Add reference attribute.
Diffstat (limited to 'searchcommon')
-rw-r--r--searchcommon/src/vespa/searchcommon/attribute/basictype.cpp3
-rw-r--r--searchcommon/src/vespa/searchcommon/attribute/basictype.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/searchcommon/src/vespa/searchcommon/attribute/basictype.cpp b/searchcommon/src/vespa/searchcommon/attribute/basictype.cpp
index b1a4539ebb8..74b3e331671 100644
--- a/searchcommon/src/vespa/searchcommon/attribute/basictype.cpp
+++ b/searchcommon/src/vespa/searchcommon/attribute/basictype.cpp
@@ -19,7 +19,8 @@ const BasicType::TypeInfo BasicType::_typeTable[BasicType::MAX_TYPE] = {
{ BasicType::FLOAT, sizeof(float), "float" },
{ BasicType::DOUBLE, sizeof(double), "double" },
{ BasicType::PREDICATE, 0, "predicate" },
- { BasicType::TENSOR, 0, "tensor" }
+ { BasicType::TENSOR, 0, "tensor" },
+ { BasicType::REFERENCE, 12, "reference" }
};
BasicType::Type
diff --git a/searchcommon/src/vespa/searchcommon/attribute/basictype.h b/searchcommon/src/vespa/searchcommon/attribute/basictype.h
index 26b17c46f60..425459b41b8 100644
--- a/searchcommon/src/vespa/searchcommon/attribute/basictype.h
+++ b/searchcommon/src/vespa/searchcommon/attribute/basictype.h
@@ -24,6 +24,7 @@ class BasicType
DOUBLE = 10,
PREDICATE = 11,
TENSOR = 12,
+ REFERENCE = 13,
MAX_TYPE
};