Search in sources :

Example 1 with UpdatedToroDocumentBuilder

use of com.torodb.mongodb.language.update.UpdatedToroDocumentBuilder in project torodb by torodb.

the class UpdateImplementation method update.

protected KvDocument update(UpdateAction updateAction, ToroDocument candidate) throws UpdateException {
    UpdatedToroDocumentBuilder builder = UpdatedToroDocumentBuilder.from(candidate);
    updateAction.apply(builder);
    return builder.build();
}
Also used : UpdatedToroDocumentBuilder(com.torodb.mongodb.language.update.UpdatedToroDocumentBuilder)

Aggregations

UpdatedToroDocumentBuilder (com.torodb.mongodb.language.update.UpdatedToroDocumentBuilder)1