IndexingParameters Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. IndexingParameters
- com.
Implements
public final class IndexingParameters
implements JsonSerializable<IndexingParameters>
Represents parameters for indexer execution.
Constructor Summary
Constructor | Description |
---|---|
IndexingParameters() |
Creates an instance of Indexing |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Indexing |
fromJson(JsonReader jsonReader)
Reads an instance of Indexing |
Integer |
getBatchSize()
Get the batch |
Map<String,Object> |
getConfiguration()
Get the configuration property: A dictionary of indexer-specific configuration properties. |
Indexing |
getIndexingParametersConfiguration()
Get the configuration property: A dictionary of indexer-specific configuration properties. |
Integer |
getMaxFailedItems()
Get the max |
Integer |
getMaxFailedItemsPerBatch()
Get the max |
Indexing |
setBatchSize(Integer batchSize)
Set the batch |
Indexing |
setConfiguration(Map<String,Object> configuration)
Set the configuration property: A dictionary of indexer-specific configuration properties. |
Indexing |
setIndexingParametersConfiguration(IndexingParametersConfiguration configuration)
Set the configuration property: A dictionary of indexer-specific configuration properties. |
Indexing |
setMaxFailedItems(Integer maxFailedItems)
Set the max |
Indexing |
setMaxFailedItemsPerBatch(Integer maxFailedItemsPerBatch)
Set the max |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
IndexingParameters
public IndexingParameters()
Creates an instance of IndexingParameters class.
Method Details
fromJson
public static IndexingParameters fromJson(JsonReader jsonReader)
Reads an instance of IndexingParameters from the JsonReader.
Parameters:
Returns:
Throws:
getBatchSize
public Integer getBatchSize()
Get the batchSize property: The number of items that are read from the data source and indexed as a single batch in order to improve performance. The default depends on the data source type.
Returns:
getConfiguration
public Map
Get the configuration property: A dictionary of indexer-specific configuration properties. Each name is the name of a specific property. Each value must be of a primitive type.
Returns:
getIndexingParametersConfiguration
public IndexingParametersConfiguration getIndexingParametersConfiguration()
Get the configuration property: A dictionary of indexer-specific configuration properties. Each name is the name of a specific property. Each value must be of a primitive type.
Returns:
getMaxFailedItems
public Integer getMaxFailedItems()
Get the maxFailedItems property: The maximum number of items that can fail indexing for indexer execution to still be considered successful. -1 means no limit. Default is 0.
Returns:
getMaxFailedItemsPerBatch
public Integer getMaxFailedItemsPerBatch()
Get the maxFailedItemsPerBatch property: The maximum number of items in a single batch that can fail indexing for the batch to still be considered successful. -1 means no limit. Default is 0.
Returns:
setBatchSize
public IndexingParameters setBatchSize(Integer batchSize)
Set the batchSize property: The number of items that are read from the data source and indexed as a single batch in order to improve performance. The default depends on the data source type.
Parameters:
Returns:
setConfiguration
public IndexingParameters setConfiguration(Map
Set the configuration property: A dictionary of indexer-specific configuration properties. Each name is the name of a specific property. Each value must be of a primitive type.
Parameters:
Returns:
setIndexingParametersConfiguration
public IndexingParameters setIndexingParametersConfiguration(IndexingParametersConfiguration configuration)
Set the configuration property: A dictionary of indexer-specific configuration properties. Each name is the name of a specific property. Each value must be of a primitive type.
Parameters:
Returns:
setMaxFailedItems
public IndexingParameters setMaxFailedItems(Integer maxFailedItems)
Set the maxFailedItems property: The maximum number of items that can fail indexing for indexer execution to still be considered successful. -1 means no limit. Default is 0.
Parameters:
Returns:
setMaxFailedItemsPerBatch
public IndexingParameters setMaxFailedItemsPerBatch(Integer maxFailedItemsPerBatch)
Set the maxFailedItemsPerBatch property: The maximum number of items in a single batch that can fail indexing for the batch to still be considered successful. -1 means no limit. Default is 0.
Parameters:
Returns:
toJson
Applies to
Azure SDK for Java