diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-03-04 16:15:53 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-03-04 18:07:04 +0000 |
commit | 4d4b1024cbaa9ad537927d66309db8aa9f628c37 (patch) | |
tree | 834db36e1f9c1fa8804713ae049deb3d86c6264b /searchlib/src/vespa/searchlib/query/streaming/queryterm.h | |
parent | 311e77aad06f187c70864a80a0703082f72bb3d8 (diff) |
Keep only one ucs4 buffer, and create the buffer lazy.
Diffstat (limited to 'searchlib/src/vespa/searchlib/query/streaming/queryterm.h')
-rw-r--r-- | searchlib/src/vespa/searchlib/query/streaming/queryterm.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/searchlib/src/vespa/searchlib/query/streaming/queryterm.h b/searchlib/src/vespa/searchlib/query/streaming/queryterm.h index 6daa60a317a..4f323b7f9f1 100644 --- a/searchlib/src/vespa/searchlib/query/streaming/queryterm.h +++ b/searchlib/src/vespa/searchlib/query/streaming/queryterm.h @@ -26,7 +26,7 @@ public: class EncodingBitMap { public: - EncodingBitMap(unsigned bm=0) : _enc(bm) { } + EncodingBitMap(uint8_t bm=0) : _enc(bm) { } bool isFloat() const { return _enc & Float; } bool isBase10Integer() const { return _enc & Base10Integer; } bool isAscii7Bit() const { return _enc & Ascii7Bit; } @@ -35,7 +35,7 @@ public: void setFloat(bool v) { if (v) _enc |= Float; else _enc &= ~Float; } private: enum { Ascii7Bit=0x01, Base10Integer=0x02, Float=0x04 }; - unsigned _enc; + uint8_t _enc; }; class FieldInfo { public: @@ -55,8 +55,6 @@ public: }; QueryTerm(); QueryTerm(std::unique_ptr<QueryNodeResultBase> resultBase, const string & term, const string & index, Type type); - QueryTerm(const QueryTerm &); - QueryTerm & operator = (const QueryTerm &); QueryTerm(QueryTerm &&) noexcept; QueryTerm & operator = (QueryTerm &&) noexcept; ~QueryTerm(); |