SearchIndexerDataContainer Class

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

Implements

public final class SearchIndexerDataContainer
implements JsonSerializable<SearchIndexerDataContainer>

Represents information about the entity (such as Azure SQL table or CosmosDB collection) that will be indexed.

Constructor Summary

Constructor Description
SearchIndexerDataContainer(String name)

Creates an instance of SearchIndexerDataContainer class.

Method Summary

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

Reads an instance of SearchIndexerDataContainer from the JsonReader.

String getName()

Get the name property: The name of the table or view (for Azure SQL data source) or collection (for CosmosDB data source) that will be indexed.

String getQuery()

Get the query property: A query that is applied to this data container.

SearchIndexerDataContainer setQuery(String query)

Set the query property: A query that is applied to this data container.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

SearchIndexerDataContainer

public SearchIndexerDataContainer(String name)

Creates an instance of SearchIndexerDataContainer class.

Parameters:

name - the name value to set.

Method Details

fromJson

public static SearchIndexerDataContainer fromJson(JsonReader jsonReader)

Reads an instance of SearchIndexerDataContainer from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SearchIndexerDataContainer 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: The name of the table or view (for Azure SQL data source) or collection (for CosmosDB data source) that will be indexed.

Returns:

the name value.

getQuery

public String getQuery()

Get the query property: A query that is applied to this data container. The syntax and meaning of this parameter is datasource-specific. Not supported by Azure SQL datasources.

Returns:

the query value.

setQuery

public SearchIndexerDataContainer setQuery(String query)

Set the query property: A query that is applied to this data container. The syntax and meaning of this parameter is datasource-specific. Not supported by Azure SQL datasources.

Parameters:

query - the query value to set.

Returns:

the SearchIndexerDataContainer object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to