Condividi tramite


VectorThreshold Class

  • java.lang.Object
    • com.azure.search.documents.models.VectorThreshold

Implements

public class VectorThreshold
implements JsonSerializable<VectorThreshold>

The threshold used for vector queries.

Constructor Summary

Constructor Description
VectorThreshold()

Creates an instance of VectorThreshold class.

Method Summary

Modifier and Type Method and Description
static VectorThreshold fromJson(JsonReader jsonReader)

Reads an instance of VectorThreshold from the JsonReader.

VectorThresholdKind getKind()

Get the kind property: The kind of threshold used to filter vector queries.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

VectorThreshold

public VectorThreshold()

Creates an instance of VectorThreshold class.

Method Details

fromJson

public static VectorThreshold fromJson(JsonReader jsonReader)

Reads an instance of VectorThreshold from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VectorThreshold 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 VectorThreshold.

getKind

public VectorThresholdKind getKind()

Get the kind property: The kind of threshold used to filter vector queries.

Returns:

the kind value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to