共用方式為


CosmosDBVectorIndex Class

Definition

The CosmosDBVectorIndex.

public class CosmosDBVectorIndex : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CosmosDB.Models.CosmosDBVectorIndex>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CosmosDB.Models.CosmosDBVectorIndex>
type CosmosDBVectorIndex = class
    interface IJsonModel<CosmosDBVectorIndex>
    interface IPersistableModel<CosmosDBVectorIndex>
Public Class CosmosDBVectorIndex
Implements IJsonModel(Of CosmosDBVectorIndex), IPersistableModel(Of CosmosDBVectorIndex)
Inheritance
CosmosDBVectorIndex
Implements

Constructors

CosmosDBVectorIndex(String, CosmosDBVectorIndexType)

Initializes a new instance of CosmosDBVectorIndex.

Properties

IndexType

The index type of the vector. Currently, flat, diskANN, and quantizedFlat are supported.

Path

The path to the vector field in the document.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<CosmosDBVectorIndex>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<CosmosDBVectorIndex>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CosmosDBVectorIndex>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CosmosDBVectorIndex>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<CosmosDBVectorIndex>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to