summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@oath.com>2018-09-07 11:31:04 +0000
committerTor Egge <Tor.Egge@oath.com>2018-09-07 11:31:04 +0000
commit9aa385c95449551b1dc111ba85e8b68de5cbbcd5 (patch)
treee81163f2d52d4dcad468e8b63fefd113e5420296 /searchlib
parent88b3611e6adbc97b40a702435fcd576237339084 (diff)
Use _keys as name for array of keys fetched from key attribute.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/expression/attribute_keyed_node.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/searchlib/src/vespa/searchlib/expression/attribute_keyed_node.cpp b/searchlib/src/vespa/searchlib/expression/attribute_keyed_node.cpp
index fde9e4a0b3c..755d13fe32e 100644
--- a/searchlib/src/vespa/searchlib/expression/attribute_keyed_node.cpp
+++ b/searchlib/src/vespa/searchlib/expression/attribute_keyed_node.cpp
@@ -70,21 +70,21 @@ EnumHandle convertKey<EnumHandle>(const IAttributeVector &attribute, const vespa
template <typename T, typename KeyType = T>
class KeyHandlerT : public AttributeKeyedNode::KeyHandler
{
- AttributeContent<T> _values;
+ AttributeContent<T> _keys;
KeyType _key;
public:
KeyHandlerT(const IAttributeVector &attribute, const vespalib::string &key)
: KeyHandler(attribute),
- _values(),
+ _keys(),
_key(convertKey<KeyType>(attribute, key))
{
}
~KeyHandlerT() override;
uint32_t handle(DocId docId) override {
- _values.fill(_attribute, docId);
- for (uint32_t i = 0; i < _values.size(); ++i) {
- if (_key == _values[i]) {
+ _keys.fill(_attribute, docId);
+ for (uint32_t i = 0; i < _keys.size(); ++i) {
+ if (_key == _keys[i]) {
return i;
}
}