Class VectorSearchProfile
java.lang.Object
com.azure.search.documents.indexes.models.VectorSearchProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VectorSearchProfile>
public final class VectorSearchProfile
extends Object
implements com.azure.json.JsonSerializable<VectorSearchProfile>
Defines a combination of configurations to use with vector search.
-
Constructor Summary
ConstructorsConstructorDescriptionVectorSearchProfile(String name, String algorithmConfigurationName) Creates an instance of VectorSearchProfile class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VectorSearchProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VectorSearchProfile from the JsonReader.Get the algorithmConfigurationName property: The name of the vector search algorithm configuration that specifies the algorithm and optional parameters.Get the compressionName property: The name of the compression method configuration that specifies the compression method and optional parameters.getName()Get the name property: The name to associate with this particular vector search profile.Get the vectorizerName property: The name of the vectorization being configured for use with vector search.setCompressionName(String compressionName) Set the compressionName property: The name of the compression method configuration that specifies the compression method and optional parameters.setVectorizerName(String vectorizerName) Set the vectorizerName property: The name of the vectorization being configured for use with vector search.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VectorSearchProfile
Creates an instance of VectorSearchProfile class.- Parameters:
name- the name value to set.algorithmConfigurationName- the algorithmConfigurationName value to set.
-
-
Method Details
-
getName
Get the name property: The name to associate with this particular vector search profile.- Returns:
- the name value.
-
getAlgorithmConfigurationName
Get the algorithmConfigurationName property: The name of the vector search algorithm configuration that specifies the algorithm and optional parameters.- Returns:
- the algorithmConfigurationName value.
-
getVectorizerName
Get the vectorizerName property: The name of the vectorization being configured for use with vector search.- Returns:
- the vectorizerName value.
-
setVectorizerName
Set the vectorizerName property: The name of the vectorization being configured for use with vector search.- Parameters:
vectorizerName- the vectorizerName value to set.- Returns:
- the VectorSearchProfile object itself.
-
getCompressionName
Get the compressionName property: The name of the compression method configuration that specifies the compression method and optional parameters.- Returns:
- the compressionName value.
-
setCompressionName
Set the compressionName property: The name of the compression method configuration that specifies the compression method and optional parameters.- Parameters:
compressionName- the compressionName value to set.- Returns:
- the VectorSearchProfile object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VectorSearchProfile>- Throws:
IOException
-
fromJson
Reads an instance of VectorSearchProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VectorSearchProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the VectorSearchProfile.
-