Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
IndexDocumentsBatch Class
- Package:
- com.azure.search.documents.models
- Maven Artifact:
- com.azure:azure-search-documents:12.0.0
- java.lang.Object
- com.azure.search.documents.models.IndexDocumentsBatch
Implements
public final class IndexDocumentsBatch
implements JsonSerializable<IndexDocumentsBatch>
Contains a batch of document write actions to send to the index.
Constructor Summary
| Constructor | Description |
|---|---|
| IndexDocumentsBatch(IndexAction[] actions) |
Creates an instance of IndexDocumentsBatch class. |
| IndexDocumentsBatch(List<IndexAction> actions) |
Creates an instance of IndexDocumentsBatch class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static IndexDocumentsBatch |
fromJson(JsonReader jsonReader)
Reads an instance of IndexDocumentsBatch from the JsonReader. |
| List<IndexAction> |
getActions()
Get the actions property: The actions in the batch. |
| JsonWriter | toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
IndexDocumentsBatch
public IndexDocumentsBatch(IndexAction[] actions)
Creates an instance of IndexDocumentsBatch class.
Parameters:
IndexDocumentsBatch
public IndexDocumentsBatch(List<IndexAction> actions)
Creates an instance of IndexDocumentsBatch class.
Parameters:
Method Details
fromJson
public static IndexDocumentsBatch fromJson(JsonReader jsonReader)
Reads an instance of IndexDocumentsBatch from the JsonReader.
Parameters:
Returns:
Throws:
getActions
public List<IndexAction> getActions()
Get the actions property: The actions in the batch.
Returns:
toJson
Applies to
Azure SDK for Java
Feedback
Was this page helpful?
