SearchIndexerDataContainer Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. SearchIndexerDataContainer
- com.
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 Search |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Search |
fromJson(JsonReader jsonReader)
Reads an instance of Search |
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. |
Search |
setQuery(String query)
Set the query property: A query that is applied to this data container. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
SearchIndexerDataContainer
public SearchIndexerDataContainer(String name)
Creates an instance of SearchIndexerDataContainer class.
Parameters:
Method Details
fromJson
public static SearchIndexerDataContainer fromJson(JsonReader jsonReader)
Reads an instance of SearchIndexerDataContainer from the JsonReader.
Parameters:
Returns:
Throws:
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:
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:
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:
Returns:
toJson
Applies to
Azure SDK for Java