mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-24 08:00:00 -06:00
add key in pojo for vector result
This commit is contained in:
parent
8f4aa5cec5
commit
ac8ca0be37
@ -65,9 +65,12 @@ public class KnnSearchOpDispenser extends BaseOpenSearchOpDispenser {
|
|||||||
|
|
||||||
public static class Doc {
|
public static class Doc {
|
||||||
private float[] values;
|
private float[] values;
|
||||||
|
private String key;
|
||||||
|
|
||||||
public Doc() {}
|
public Doc() {}
|
||||||
public Doc(float[] values) {
|
public Doc(float[] values, String key) {
|
||||||
this.values = values;
|
this.values = values;
|
||||||
|
this.key = key;
|
||||||
}
|
}
|
||||||
public float[] getValues() {
|
public float[] getValues() {
|
||||||
return values;
|
return values;
|
||||||
@ -79,6 +82,14 @@ public class KnnSearchOpDispenser extends BaseOpenSearchOpDispenser {
|
|||||||
public String toString() {
|
public String toString() {
|
||||||
return "{" + "values=" + values + "}";
|
return "{" + "values=" + values + "}";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getKey() {
|
||||||
|
return key;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKey(String key) {
|
||||||
|
this.key = key;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user