Class ScalarQuantizationParameters
java.lang.Object
com.azure.search.documents.indexes.models.ScalarQuantizationParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ScalarQuantizationParameters>
public final class ScalarQuantizationParameters
extends Object
implements com.azure.json.JsonSerializable<ScalarQuantizationParameters>
Contains the parameters specific to Scalar Quantization.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ScalarQuantizationParameters class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScalarQuantizationParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ScalarQuantizationParameters from the JsonReader.Get the quantizedDataType property: The quantized data type of compressed vector values.setQuantizedDataType(VectorSearchCompressionTarget quantizedDataType) Set the quantizedDataType property: The quantized data type of compressed vector values.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
-
ScalarQuantizationParameters
public ScalarQuantizationParameters()Creates an instance of ScalarQuantizationParameters class.
-
-
Method Details
-
getQuantizedDataType
Get the quantizedDataType property: The quantized data type of compressed vector values.- Returns:
- the quantizedDataType value.
-
setQuantizedDataType
public ScalarQuantizationParameters setQuantizedDataType(VectorSearchCompressionTarget quantizedDataType) Set the quantizedDataType property: The quantized data type of compressed vector values.- Parameters:
quantizedDataType- the quantizedDataType value to set.- Returns:
- the ScalarQuantizationParameters object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ScalarQuantizationParameters>- Throws:
IOException
-
fromJson
public static ScalarQuantizationParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ScalarQuantizationParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ScalarQuantizationParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ScalarQuantizationParameters.
-