We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8936d5 commit eec6dfdCopy full SHA for eec6dfd
cpp/src/gandiva/in_holder.h
@@ -20,6 +20,7 @@
20
#include <string>
21
#include <unordered_set>
22
23
+#include "arrow/util/hashing.h"
24
#include "gandiva/arrow.h"
25
#include "gandiva/gandiva_aliases.h"
26
@@ -57,7 +58,14 @@ class InHolder<std::string> {
57
58
}
59
60
private:
- std::unordered_set<arrow::util::string_view> values_lookup_;
61
+ struct string_view_hash {
62
+ public:
63
+ std::size_t operator()(arrow::util::string_view v) const {
64
+ return arrow::internal::ComputeStringHash<0>(v.data(), v.length());
65
+ }
66
+ };
67
+
68
+ std::unordered_set<arrow::util::string_view, string_view_hash> values_lookup_;
69
const std::unordered_set<std::string> values_;
70
};
71
0 commit comments