IndexDocumentsBatch Class
- java.
lang. Object - com.
azure. search. documents. models. IndexDocumentsBatch
- com.
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 Index |
| IndexDocumentsBatch(List<IndexAction> actions) |
Creates an instance of Index |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Index |
fromJson(JsonReader jsonReader)
Reads an instance of Index |
|
List<Index |
getActions()
Get the actions property: The actions in the batch. |
|
Json |
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: