IndexedSqlKnowledgeSourceParameters Class

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

Implements

public final class IndexedSqlKnowledgeSourceParameters
implements JsonSerializable<IndexedSqlKnowledgeSourceParameters>

Parameters for indexed SQL knowledge source.

Constructor Summary

Constructor Description
IndexedSqlKnowledgeSourceParameters(String connectionString, String tableOrView)

Creates an instance of IndexedSqlKnowledgeSourceParameters class.

Method Summary

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

Reads an instance of IndexedSqlKnowledgeSourceParameters from the JsonReader.

String getConnectionString()

Get the connectionString property: The connection string for the Azure SQL Database or SQL Managed Instance.

List<ContentColumnMapping> getContentColumns()

Get the contentColumns property: Optional column mappings for content fields.

CreatedResources getCreatedResources()

Get the createdResources property: Resources created by the knowledge source.

List<EmbeddingColumnMapping> getEmbeddingColumns()

Get the embeddingColumns property: Optional column mappings for embedding vector fields.

String getHighWaterMarkColumnName()

Get the highWaterMarkColumnName property: Optional column name for high water mark change detection.

KnowledgeSourceIngestionParameters getIngestionParameters()

Get the ingestionParameters property: Consolidates all general ingestion settings including embedding model, schedule, and identity.

String getTableOrView()

Get the tableOrView property: The name of the table or view to index.

IndexedSqlKnowledgeSourceParameters setContentColumns(List<ContentColumnMapping> contentColumns)

Set the contentColumns property: Optional column mappings for content fields.

IndexedSqlKnowledgeSourceParameters setEmbeddingColumns(List<EmbeddingColumnMapping> embeddingColumns)

Set the embeddingColumns property: Optional column mappings for embedding vector fields.

IndexedSqlKnowledgeSourceParameters setHighWaterMarkColumnName(String highWaterMarkColumnName)

Set the highWaterMarkColumnName property: Optional column name for high water mark change detection.

IndexedSqlKnowledgeSourceParameters setIngestionParameters(KnowledgeSourceIngestionParameters ingestionParameters)

Set the ingestionParameters property: Consolidates all general ingestion settings including embedding model, schedule, and identity.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

IndexedSqlKnowledgeSourceParameters

public IndexedSqlKnowledgeSourceParameters(String connectionString, String tableOrView)

Creates an instance of IndexedSqlKnowledgeSourceParameters class.

Parameters:

connectionString - the connectionString value to set.
tableOrView - the tableOrView value to set.

Method Details

fromJson

public static IndexedSqlKnowledgeSourceParameters fromJson(JsonReader jsonReader)

Reads an instance of IndexedSqlKnowledgeSourceParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getConnectionString

public String getConnectionString()

Get the connectionString property: The connection string for the Azure SQL Database or SQL Managed Instance.

Returns:

the connectionString value.

getContentColumns

public List<ContentColumnMapping> getContentColumns()

Get the contentColumns property: Optional column mappings for content fields. If omitted, all columns are auto-discovered.

Returns:

the contentColumns value.

getCreatedResources

public CreatedResources getCreatedResources()

Get the createdResources property: Resources created by the knowledge source.

Returns:

the createdResources value.

getEmbeddingColumns

public List<EmbeddingColumnMapping> getEmbeddingColumns()

Get the embeddingColumns property: Optional column mappings for embedding vector fields. If omitted, no vector fields are created.

Returns:

the embeddingColumns value.

getHighWaterMarkColumnName

public String getHighWaterMarkColumnName()

Get the highWaterMarkColumnName property: Optional column name for high water mark change detection. If provided, uses HighWaterMarkChangeDetectionPolicy.

Returns:

the highWaterMarkColumnName value.

getIngestionParameters

public KnowledgeSourceIngestionParameters getIngestionParameters()

Get the ingestionParameters property: Consolidates all general ingestion settings including embedding model, schedule, and identity.

Returns:

the ingestionParameters value.

getTableOrView

public String getTableOrView()

Get the tableOrView property: The name of the table or view to index. Can be schema-qualified (e.g., 'dbo.MyTable').

Returns:

the tableOrView value.

setContentColumns

public IndexedSqlKnowledgeSourceParameters setContentColumns(List<ContentColumnMapping> contentColumns)

Set the contentColumns property: Optional column mappings for content fields. If omitted, all columns are auto-discovered.

Parameters:

contentColumns - the contentColumns value to set.

Returns:

the IndexedSqlKnowledgeSourceParameters object itself.

setEmbeddingColumns

public IndexedSqlKnowledgeSourceParameters setEmbeddingColumns(List<EmbeddingColumnMapping> embeddingColumns)

Set the embeddingColumns property: Optional column mappings for embedding vector fields. If omitted, no vector fields are created.

Parameters:

embeddingColumns - the embeddingColumns value to set.

Returns:

the IndexedSqlKnowledgeSourceParameters object itself.

setHighWaterMarkColumnName

public IndexedSqlKnowledgeSourceParameters setHighWaterMarkColumnName(String highWaterMarkColumnName)

Set the highWaterMarkColumnName property: Optional column name for high water mark change detection. If provided, uses HighWaterMarkChangeDetectionPolicy.

Parameters:

highWaterMarkColumnName - the highWaterMarkColumnName value to set.

Returns:

the IndexedSqlKnowledgeSourceParameters object itself.

setIngestionParameters

public IndexedSqlKnowledgeSourceParameters setIngestionParameters(KnowledgeSourceIngestionParameters ingestionParameters)

Set the ingestionParameters property: Consolidates all general ingestion settings including embedding model, schedule, and identity.

Parameters:

ingestionParameters - the ingestionParameters value to set.

Returns:

the IndexedSqlKnowledgeSourceParameters object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to