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
ac8ca0be37
commit
9d83684565
@ -64,23 +64,23 @@ public class KnnSearchOpDispenser extends BaseOpenSearchOpDispenser {
|
||||
}
|
||||
|
||||
public static class Doc {
|
||||
private float[] values;
|
||||
private float[] value;
|
||||
private String key;
|
||||
|
||||
public Doc() {}
|
||||
public Doc(float[] values, String key) {
|
||||
this.values = values;
|
||||
public Doc(float[] value, String key) {
|
||||
this.value = value;
|
||||
this.key = key;
|
||||
}
|
||||
public float[] getValues() {
|
||||
return values;
|
||||
public float[] getValue() {
|
||||
return value;
|
||||
}
|
||||
public void setValues(float[] values) {
|
||||
this.values = values;
|
||||
public void setValue(float[] value) {
|
||||
this.value = value;
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{" + "values=" + values + "}";
|
||||
return "{" + "values=" + value + "}";
|
||||
}
|
||||
|
||||
public String getKey() {
|
||||
|
Loading…
Reference in New Issue
Block a user