Class SearchIndexerDataContainer
java.lang.Object
com.azure.search.documents.indexes.models.SearchIndexerDataContainer
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SearchIndexerDataContainer>
public final class SearchIndexerDataContainer
extends Object
implements com.azure.json.JsonSerializable<SearchIndexerDataContainer>
Represents information about the entity (such as Azure SQL table or CosmosDB collection) that will be indexed.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SearchIndexerDataContainer class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchIndexerDataContainerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SearchIndexerDataContainer from the JsonReader.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.getQuery()Get the query property: A query that is applied to this data container.Set the query property: A query that is applied to this data container.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SearchIndexerDataContainer
Creates an instance of SearchIndexerDataContainer class.- Parameters:
name- the name value to set.
-
-
Method Details
-
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
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
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SearchIndexerDataContainer>- Throws:
IOException
-
fromJson
public static SearchIndexerDataContainer fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the SearchIndexerDataContainer.
-