VectorIndex Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. VectorIndex
- com.
Implements
public final class VectorIndex
implements JsonSerializable<VectorIndex>
The VectorIndex model.
Constructor Summary
Constructor | Description |
---|---|
VectorIndex() |
Creates an instance of Vector |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Vector |
fromJson(JsonReader jsonReader)
Reads an instance of Vector |
String |
path()
Get the path property: The path to the vector field in the document. |
Json |
toJson(JsonWriter jsonWriter) |
Vector |
type()
Get the type property: The index type of the vector. |
void |
validate()
Validates the instance. |
Vector |
withPath(String path)
Set the path property: The path to the vector field in the document. |
Vector |
withType(VectorIndexType type)
Set the type property: The index type of the vector. |
Methods inherited from java.lang.Object
Constructor Details
VectorIndex
public VectorIndex()
Creates an instance of VectorIndex class.
Method Details
fromJson
public static VectorIndex fromJson(JsonReader jsonReader)
Reads an instance of VectorIndex from the JsonReader.
Parameters:
Returns:
Throws:
path
public String path()
Get the path property: The path to the vector field in the document.
Returns:
toJson
type
public VectorIndexType type()
Get the type property: The index type of the vector. Currently, flat, diskANN, and quantizedFlat are supported.
Returns:
validate
public void validate()
Validates the instance.
withPath
public VectorIndex withPath(String path)
Set the path property: The path to the vector field in the document.
Parameters:
Returns:
withType
public VectorIndex withType(VectorIndexType type)
Set the type property: The index type of the vector. Currently, flat, diskANN, and quantizedFlat are supported.
Parameters:
Returns:
Applies to
Azure SDK for Java