你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

EmbeddingColumnMapping Class

  • java.lang.Object
    • com.azure.search.documents.indexes.models.EmbeddingColumnMapping

Implements

public final class EmbeddingColumnMapping
implements JsonSerializable<EmbeddingColumnMapping>

Maps a SQL column to a vector field for embedding.

Constructor Summary

Constructor Description
EmbeddingColumnMapping(String name, String sourceField)

Creates an instance of EmbeddingColumnMapping class.

Method Summary

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

Reads an instance of EmbeddingColumnMapping from the JsonReader.

String getName()

Get the name property: Target vector field name in the search index.

String getSourceField()

Get the sourceField property: SQL column used as input for embedding generation.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

EmbeddingColumnMapping

public EmbeddingColumnMapping(String name, String sourceField)

Creates an instance of EmbeddingColumnMapping class.

Parameters:

name - the name value to set.
sourceField - the sourceField value to set.

Method Details

fromJson

public static EmbeddingColumnMapping fromJson(JsonReader jsonReader)

Reads an instance of EmbeddingColumnMapping from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EmbeddingColumnMapping if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getName

public String getName()

Get the name property: Target vector field name in the search index.

Returns:

the name value.

getSourceField

public String getSourceField()

Get the sourceField property: SQL column used as input for embedding generation.

Returns:

the sourceField value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to