mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-23 15:40:44 -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 {
|
||||
private float[] values;
|
||||
private String key;
|
||||
|
||||
public Doc() {}
|
||||
public Doc(float[] values) {
|
||||
public Doc(float[] values, String key) {
|
||||
this.values = values;
|
||||
this.key = key;
|
||||
}
|
||||
public float[] getValues() {
|
||||
return values;
|
||||
@ -79,6 +82,14 @@ public class KnnSearchOpDispenser extends BaseOpenSearchOpDispenser {
|
||||
public String toString() {
|
||||
return "{" + "values=" + values + "}";
|
||||
}
|
||||
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user