public class SizeLimitedJsonOperation extends SizeLimitedUpdateOperation
SizeLimitedUpdateOperation that demonstrates binding the document input streams to JsonNode
instances. These instances are held entirely in memory but since this operation extends
SizeLimitedUpdateOperation, any "large" inputs are filtered out before reaching this operation. Only a SINGLE
input should be held in memory at a time. If a batch of all documents is required,
SizeLimitedBatchJsonOperation demonstrates how to combine documents using a streaming json writer.| Modifier | Constructor and Description |
|---|---|
protected |
SizeLimitedJsonOperation(OperationContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
executeSizeLimitedUpdate(UpdateRequest request,
OperationResponse response)
Execute the implementation update logic
|
executeUpdate, getSizeExceededMessage, getSizeExceededStatusCode, includeSizeExceededPayloadexecutegetConnection, getContextprotected SizeLimitedJsonOperation(OperationContext context)
protected void executeSizeLimitedUpdate(UpdateRequest request, OperationResponse response)
SizeLimitedUpdateOperationexecuteSizeLimitedUpdate in class SizeLimitedUpdateOperationrequest - the filtered requestresponse - the operation response