|
|
|
@ -32,11 +32,18 @@ public final class FlatVectorIndexParams implements FlatVectorIndex,
|
|
|
|
|
private Integer initialCapacity;
|
|
|
|
|
private Integer blockSize;
|
|
|
|
|
private int count;
|
|
|
|
|
private String as;
|
|
|
|
|
|
|
|
|
|
FlatVectorIndexParams(String name) {
|
|
|
|
|
this.fieldName = name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public FlatVectorIndexParams as(String as) {
|
|
|
|
|
this.as = as;
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public VectorDimParam<FlatVectorOptionalArgs> type(Type type) {
|
|
|
|
|
count++;
|
|
|
|
@ -99,4 +106,8 @@ public final class FlatVectorIndexParams implements FlatVectorIndex,
|
|
|
|
|
public int getCount() {
|
|
|
|
|
return count;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getAs() {
|
|
|
|
|
return as;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|