Class VectorStoreRecordVectorField
- java.lang.Object
-
- com.microsoft.semantickernel.data.vectorstorage.definition.VectorStoreRecordField
-
- com.microsoft.semantickernel.data.vectorstorage.definition.VectorStoreRecordVectorField
-
public class VectorStoreRecordVectorField extends VectorStoreRecordField
Represents a vector field in a record.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVectorStoreRecordVectorField.BuilderA builder for the VectorStoreRecordVectorField class.
-
Constructor Summary
Constructors Constructor Description VectorStoreRecordVectorField(String name, String storageName, Class<?> fieldType, int dimensions, IndexKind indexKind, DistanceFunction distanceFunction)Creates a new instance of the VectorStoreRecordVectorField class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VectorStoreRecordVectorField.Builderbuilder()Create a builder for the VectorStoreRecordVectorField class.intgetDimensions()Gets the number of dimensions in the vector.DistanceFunctiongetDistanceFunction()Gets the distance function.IndexKindgetIndexKind()Gets the index kind.-
Methods inherited from class com.microsoft.semantickernel.data.vectorstorage.definition.VectorStoreRecordField
getEffectiveStorageName, getFieldType, getName, getStorageName
-
-
-
-
Constructor Detail
-
VectorStoreRecordVectorField
public VectorStoreRecordVectorField(@Nonnull String name, @Nullable String storageName, @Nonnull Class<?> fieldType, int dimensions, @Nullable IndexKind indexKind, @Nullable DistanceFunction distanceFunction)
Creates a new instance of the VectorStoreRecordVectorField class.- Parameters:
name- the name of the fieldstorageName- the storage name of the fieldfieldType- the field typedimensions- the number of dimensions in the vectorindexKind- the index kinddistanceFunction- the distance function
-
-
Method Detail
-
builder
public static VectorStoreRecordVectorField.Builder builder()
Create a builder for the VectorStoreRecordVectorField class.- Returns:
- a new instance of the builder
-
getDimensions
public int getDimensions()
Gets the number of dimensions in the vector.- Returns:
- the number of dimensions in the vector
-
getIndexKind
public IndexKind getIndexKind()
Gets the index kind.- Returns:
- the index kind
-
getDistanceFunction
public DistanceFunction getDistanceFunction()
Gets the distance function.- Returns:
- the distance function
-
-