aboutsummaryrefslogtreecommitdiffstats
path: root/eval/src/tests/ann/for-sift-hit.h
diff options
context:
space:
mode:
Diffstat (limited to 'eval/src/tests/ann/for-sift-hit.h')
-rw-r--r--eval/src/tests/ann/for-sift-hit.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/eval/src/tests/ann/for-sift-hit.h b/eval/src/tests/ann/for-sift-hit.h
new file mode 100644
index 00000000000..1f2c0f21851
--- /dev/null
+++ b/eval/src/tests/ann/for-sift-hit.h
@@ -0,0 +1,10 @@
+// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+
+#pragma once
+
+struct Hit {
+ uint32_t docid;
+ double distance;
+ Hit() : docid(0u), distance(0.0) {}
+ Hit(int id, double dist) : docid(id), distance(dist) {}
+};