ContentColumnMapping Class

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

Implements

public final class ContentColumnMapping
implements JsonSerializable<ContentColumnMapping>

Maps a SQL column to a search index field.

Constructor Summary

Constructor Description
ContentColumnMapping(String name, String sourceField, String searchFieldType)

Creates an instance of ContentColumnMapping class.

Method Summary

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

Reads an instance of ContentColumnMapping from the JsonReader.

String getName()

Get the name property: Target index field name.

String getSearchFieldType()

Get the searchFieldType property: Azure AI Search field type (e.g., Edm.String, Edm.Int32).

String getSourceField()

Get the sourceField property: SQL column name.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

ContentColumnMapping

public ContentColumnMapping(String name, String sourceField, String searchFieldType)

Creates an instance of ContentColumnMapping class.

Parameters:

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

Method Details

fromJson

public static ContentColumnMapping fromJson(JsonReader jsonReader)

Reads an instance of ContentColumnMapping from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ContentColumnMapping 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 index field name.

Returns:

the name value.

getSearchFieldType

public String getSearchFieldType()

Get the searchFieldType property: Azure AI Search field type (e.g., Edm.String, Edm.Int32).

Returns:

the searchFieldType value.

getSourceField

public String getSourceField()

Get the sourceField property: SQL column name.

Returns:

the sourceField value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to