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

    Constructors
    Constructor
    Description
    Creates an instance of SearchIndexerDataContainer class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of SearchIndexerDataContainer from the JsonReader.
    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.
    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.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • SearchIndexerDataContainer

      public SearchIndexerDataContainer(String name)
      Creates an instance of SearchIndexerDataContainer class.
      Parameters:
      name - the name value to set.
  • Method Details

    • 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 com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.